NodeResolver class
Resolves WidgetDescriptor nodes from a tree using a Selector.
Walks the tree recursively to find nodes matching the selector strategy.
final node = NodeResolver.resolve(tree, Selector.byId('5'));
final buttons = NodeResolver.resolveAll(
tree, Selector(by: SelectorType.role, value: 'button'));
Constructors
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
resolve(
WidgetDescriptor root, Selector selector) → WidgetDescriptor? -
Find the first node matching
selectorin theroottree. -
resolveAll(
WidgetDescriptor root, Selector selector) → List< WidgetDescriptor> -
Find all nodes matching
selectorin theroottree.