WidgetSnapshot<W extends Widget> class
Represents a snapshot of widgets that have been discovered by a WidgetSelector.
This class encapsulates the result of a widget selection process, containing information about the widgets that matched the selector's criteria.
- Available Extensions
Constructors
-
WidgetSnapshot({required WidgetSelector<
W> selector, required List<WidgetTreeNode> discovered, required List<Element> debugCandidates, required ScopedWidgetTreeSnapshot scope}) - Constructs a WidgetSnapshot.
Properties
-
debugCandidates
→ List<
Element> -
All widgets from scope that were checked by selector
final
-
discovered
→ List<
WidgetTreeNode> -
All elements in scope that match selector
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → ScopedWidgetTreeSnapshot
-
A widget tree (not necessarily the whole tree) that was used to
match elements with selector
final
-
selector
→ WidgetSelector<
W> -
The WidgetSelector that was used to search/filter elements in scope
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