findsWidgets top-level constant Null safety
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.
- findsAtLeastNWidgets, when you want the finder to find at least a specific number of widgets.
Implementation
const Matcher findsWidgets = _FindsWidgetMatcher(1, null);