ToWidgetMatcher<W extends Widget> extension
Extension on WidgetSnapshot<W> to convert it to WidgetMatcher types.
Provides convenience methods to transform a widget snapshot into matchers for single or multiple widgets.
- on
Properties
-
multi
→ MultiWidgetMatcher<
W> -
Converts the snapshot to a MultiWidgetMatcher,
which can match multiple widgets.
no setter
-
single
→ WidgetMatcher<
W> -
Converts the snapshot to a WidgetMatcher,
ensuring it matches at most one widget.
no setter