A11ySemanticsNodeInfo class
A snapshot of one SemanticsNode captured while walking the live accessibility tree — the merged tree the engine hands to screen readers and switch access, as opposed to the raw Element tree A11yElementInfo snapshots.
This is what makes it possible to catch widgets that set semantics via a
custom RenderObject (e.g. IconButton, InkWell) rather than an
explicit Semantics widget: those never populate
A11yElementInfo.semanticsProperties, but they always show up here,
because this is the actual tree assistive technology receives.
- Annotations
Constructors
-
A11ySemanticsNodeInfo({required int id, required String label, required String value, required String tooltip, required Rect rect, required Set<
SemanticsAction> actions, required bool isHidden, required bool isTextField, required int depth, required List<A11ySemanticsNodeInfo> childrenInTraversalOrder}) -
const
Properties
-
actions
→ Set<
SemanticsAction> -
final
-
childrenInTraversalOrder
→ List<
A11ySemanticsNodeInfo> -
This node's children, in the order assistive technology would actually
traverse them — already accounting for any explicit sort key the app
set, not just build order.
final
- depth → int
-
Depth below the semantics tree root, root's direct children at depth 0.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The SemanticsNode.id this snapshot was captured from. Stable for the
node's lifetime, useful for matching a node across successive walks.
final
- isHidden → bool
-
final
- isInteractive → bool
-
Whether this node exposes a primary interactive affordance (tap or
long-press) — the bar built-in rules use for "is this actually
something a user operates," matching Flutter's own accessibility test
guidelines (
LabeledTapTargetGuideline).no setter - isTextField → bool
-
final
- label → String
-
final
- rect → Rect
-
Global screen bounds, in the same logical-pixel coordinate space as
A11yElementInfo.bounds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltip → String
-
final
- value → String
-
final
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