findsNothing top-level constant
Matcher
const findsNothing
Asserts that the Finder matches no components in the component tree.
Sample code
expect(find.text('Save'), findsNothing);
See also:
- findsComponents, when you want the finder to find one or more components.
- 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 findsNothing = _FindsComponentMatcher(null, 0);