SemanticsData class Null safety

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.

Mixed in types
Annotations

Constructors

SemanticsData({required int flags, required int actions, required AttributedString attributedLabel, required AttributedString attributedValue, required AttributedString attributedIncreasedValue, required AttributedString attributedDecreasedValue, required AttributedString attributedHint, required String tooltip, 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, required int? platformViewId, required int? maxValueLength, required int? currentValueLength, Set<SemanticsTag>? tags, Matrix4? transform, List<int>? customSemanticsActionIds})
Creates a semantics data object.

Properties

actions int
A bit field of SemanticsActions that apply to this node.
final
attributedDecreasedValue AttributedString
The value that value will become after performing a SemanticsAction.decrease action in AttributedString format.
final
attributedHint AttributedString
A brief description of the result of performing an action on this node in AttributedString format.
final
attributedIncreasedValue AttributedString
The value that value will become after performing a SemanticsAction.increase action in AttributedString format.
final
attributedLabel AttributedString
A textual description for the current label of the node in AttributedString format.
final
attributedValue AttributedString
A textual description for the current value of the node in AttributedString format.
final
currentValueLength int?
The current number of characters that have been entered into an editable text field.
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.
read-only
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-onlyoverride
hint String
A brief description of the result of performing an action on this node.
read-only
increasedValue String
The value that value will become after performing a SemanticsAction.increase action.
read-only
label String
A textual description for the current label of the node.
read-only
maxValueLength int?
The maximum number of characters that can be entered into an editable text field.
final
platformViewId int?
The id of the platform view, whose semantics nodes will be added as children to this node.
final
rect Rect
The bounding box for this node in its coordinate system.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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, increasedValue, decreasedValue, and hint.
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
tooltip String
A textual description of the widget's tooltip.
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.
read-only

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.
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.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
override

Operators

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