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.


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


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


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


operator ==(Object other) bool
The equality operator. [...]