MultiWidgetMatcher<W extends Widget> class
A representation of multiple Widgets found by a WidgetSnapshot
This class is used to handle multiple widgets that have been matched by a WidgetSnapshot, allowing for further assertions or operations on each matched widget.
To match individual widgets use WidgetMatcher
- Available Extensions
Constructors
-
MultiWidgetMatcher.fromSnapshot(WidgetSnapshot<
W> snapshot) -
Constructs a MultiWidgetMatcher from a WidgetSnapshot.
const
Properties
-
discovered
→ List<
WidgetMatcher< W> > -
Gets a list of
WidgetMatcher
s for each widget discovered in the snapshot.no setter -
elements
→ List<
Element> -
All
Element
associated with the matched widgetsno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selector
→ WidgetSelector<
W> -
The WidgetSelector that was used to find this widget
no setter
-
widgets
→ List<
Widget> -
The actual widget instances of type
W
that were matchedno setter
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