findsAtLeastNWidgets function Null safety

Matcher findsAtLeastNWidgets(
  1. int n
)

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

Sample code

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

See also:

  • findsNothing, when you want the finder to not find anything.
  • findsWidgets, when you want the finder to find one or more widgets.
  • findsOneWidget, when you want the finder to find exactly one widget.
  • findsNWidgets, when you want the finder to find a specific number of widgets.

Implementation

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