ElementTreeWalker class

Walks the live Element tree below a BuildContext and captures a snapshot of every descendant: widget type, global render bounds, and any explicit Semantics it carries.

This is the internal API rules are built on — it does no UI work and no checking itself, just a single, cheap-as-possible traversal per frame. Meant to be run from a post-frame callback, after layout has completed, so RenderBox bounds are valid.

Constructors

ElementTreeWalker()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited
walk(BuildContext context) List<A11yElementInfo>
Returns a flattened, depth-first snapshot of every element below context. context itself is not included.

Operators

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