findsAtLeastNWidgets function

Matcher findsAtLeastNWidgets(
  1. int n
)

Asserts that the Finder locates at least a number of widgets in the widget tree.

This is equivalent to the preferred findsAtLeast method.

Sample code

expect(find.text('Save'), findsAtLeastNWidgets(2));

See also:

  • findsNothing, when you want the finder to not find anything.
  • findsAny, when you want the finder to find one or more candidates.
  • findsOne, when you want the finder to find exactly one candidate.
  • findsExactly, when you want the finder to find a specific number of candidates.

Implementation

Matcher findsAtLeastNWidgets(int n) => _FindsCountMatcher(n, null);