SemanticsData class

Summary information about a SemanticsNode object.

A semantics node might SemanticsNode.mergeAllDescendantsIntoThisNode, which means the individual fields on the semantics node don't fully describe the semantics at that node. This data structure contains the full semantics for the node.

Typically obtained from SemanticsNode.getSemanticsData.

Inheritance
Annotations
  • @immutable

Constructors

SemanticsData({@required int flags, @required int actions, @required String label, @required String increasedValue, @required String value, @required String decreasedValue, @required String hint, @required TextDirection textDirection, @required Rect rect, @required double elevation, @required double thickness, @required TextSelection textSelection, @required int scrollIndex, @required int scrollChildCount, @required double scrollPosition, @required double scrollExtentMax, @required double scrollExtentMin, Set<SemanticsTag> tags, Matrix4 transform, List<int> customSemanticsActionIds })
Creates a semantics data object. [...]
const

Properties

actions int
A bit field of SemanticsActions that apply to this node.
final
customSemanticsActionIds List<int>
The identifiers for the custom semantics actions and standard action overrides for this node. [...]
final
decreasedValue String
The value that value will become after performing a SemanticsAction.decrease action. [...]
final
elevation double
The elevation of this node relative to the parent semantics node. [...]
final
flags int
A bit field of SemanticsFlags that apply to this node.
final
hashCode int
The hash code for this object. [...]
read-only, override
hint String
A brief description of the result of performing an action on this node. [...]
final
increasedValue String
The value that value will become after performing a SemanticsAction.increase action. [...]
final
label String
A textual description of this node. [...]
final
rect Rect
The bounding box for this node in its coordinate system.
final
scrollChildCount int
The total number of scrollable children that contribute to semantics. [...]
final
scrollExtentMax double
Indicates the maximum in-range value for scrollPosition if the node is scrollable. [...]
final
scrollExtentMin double
Indicates the minimum in-range value for scrollPosition if the node is scrollable. [...]
final
scrollIndex int
The index of the first visible semantic child of a scroll node.
final
scrollPosition double
Indicates the current scrolling position in logical pixels if the node is scrollable. [...]
final
tags Set<SemanticsTag>
The set of SemanticsTags associated with this node.
final
textDirection TextDirection
The reading direction for the text in label, value, hint, increasedValue, and decreasedValue.
final
textSelection TextSelection
The currently selected text (or the position of the cursor) within value if this node represents a text field.
final
thickness double
The extent of this node along the z-axis beyond its elevation [...]
final
transform Matrix4
The transform from this node's coordinate system to its parent's coordinate system. [...]
final
value String
A textual description for the current value of the node. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
hasAction(SemanticsAction action) bool
Whether actions contains the given action.
hasFlag(SemanticsFlag flag) bool
Whether flags contains the given flag.
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style }) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this object.
inherited

Operators

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