findsWidgets top-level constant
Asserts that the Finder locates at least one widget in the widget tree.
This is equivalent to the preferred findsAny method.
Sample code
expect(find.text('Save'), findsWidgets);
See also:
- findsNothing, when you want the finder to not find anything.
- findsOne, when you want the finder to find exactly one candidate.
- findsExactly, when you want the finder to find a specific number of candidates.
- findsAtLeast, when you want the finder to find at least a specific number of candidates.
Implementation
const Matcher findsWidgets = _FindsCountMatcher(1, null);