findsWidgets top-level constant

const findsWidgets = const _FindsWidgetMatcher(1, null)

Asserts that the Finder locates at least one widget in the widget tree.

Sample code

expect(find.text('Save'), findsWidgets);

See also:

  • findsNothing, when you want the finder to not find anything.
  • 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

const Matcher findsWidgets = _FindsWidgetMatcher(1, null)