MultiWidgetSelectorMatcher<W extends Widget> extension

Extension on WidgetSnapshot

These matchers allow checking if a certain number of widgets of type W exist in the widget tree based on the snapshot's selector.

on

Methods

doesNotExist() → void
Asserts that no widgets of type W exist.
existsAtLeastNTimes(int n) MultiWidgetMatcher<W>
Asserts that at least n widgets of type W exist.
existsAtLeastOnce() MultiWidgetMatcher<W>
Asserts that at least one widget of type W exists.
existsAtMostNTimes(int n) MultiWidgetMatcher<W>
Asserts that at most n widgets of type W exist.
existsAtMostOnce() WidgetMatcher<W>
Asserts that at most one widget of type W exists.
existsExactlyNTimes(int n) MultiWidgetMatcher<W>
Asserts that exactly n widgets of type W exist.
existsOnce() WidgetMatcher<W>
Asserts that exactly one widget of type W exists.