findsComponents top-level constant
Matcher
const findsComponents
Asserts that the Finder locates at least one component in the component tree.
Sample code
expect(find.text('Save'), findsComponents);
See also:
- findsNothing, when you want the finder to not find anything.
- findsOneComponent, when you want the finder to find exactly one component.
- findsNComponents, when you want the finder to find a specific number of components.
Implementation
const Matcher findsComponents = _FindsComponentMatcher(1, null);