SemanticsWalker class

Walks the Flutter Semantics tree to extract structured UI descriptions.

The Semantics tree is Flutter's accessibility layer — it describes what is on screen in terms of labels, values, actions, and element types. This class reads that tree and produces ScreenContext snapshots.

Constructors

SemanticsWalker()

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

captureScreenContext() → ScreenContext
Capture a snapshot of the current screen's UI elements.
dispose() → void
Release the semantics handle.
ensureSemantics() → void
Enable the semantics tree. Must be called once at startup. Returns a handle that keeps the tree alive; dispose it when done.
findNodeById(int nodeId) → SemanticsNode?
Find a specific SemanticsNode by its ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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