findsAny top-level constant
Asserts that the FinderBase locates at least one matching candidate.
Sample code
expect(find.text('Save'), findsAny);
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 findsAny = _FindsCountMatcher(1, null);