SemanticsTag class

A tag for a SemanticsNode.

Tags can be interpreted by the parent of a SemanticsNode and depending on the presence of a tag the parent can for example decide how to add the tagged node as a child. Tags are not sent to the engine.

As an example, the RenderSemanticsGestureHandler uses tags to determine if a child node should be excluded from the scrollable area for semantic purposes.

The provided name is only used for debugging. Two tags created with the same name and the new operator are not considered identical. However, two tags created with the same name and the const operator are always identical.

Constructors

SemanticsTag(String name)
Creates a SemanticsTag. [...]
const

Properties

name → String
A human-readable name for this tag used for debugging. [...]
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited