A11yElementInfo class
A snapshot of one Element captured while walking the live widget tree.
Rules operate on a list of these rather than walking the tree themselves, so a single traversal per frame can serve every registered A11yRule.
- Annotations
Constructors
- A11yElementInfo({required Element element, required Widget widget, required Type widgetType, required int depth, Rect? bounds, SemanticsProperties? semanticsProperties})
-
const
Properties
- bounds → Rect?
-
Global screen bounds of the nearest descendant RenderBox (this
element's own render object if it has one, otherwise the first one
found walking down through its children), if it has been laid out.
final
- depth → int
-
Depth of element below the walk root, root children at depth 0.
final
- element → Element
-
The live Element. Only valid for the frame it was captured in —
do not retain across frames.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsProperties → SemanticsProperties?
-
The SemanticsProperties declared by this element, if widget is a
Semantics widget (or subclass) carrying explicit semantics.
final
- widget → Widget
-
The Widget configuration held by element at capture time.
final
- widgetType → Type
-
Convenience accessor for
widget.runtimeType, used by rules that match on widget kind.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