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.

Implementers

Constructors

SemanticsTag(String name)
Creates a SemanticsTag.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
A human-readable name for this tag used for debugging.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited