findsNothing top-level constant

Matcher const findsNothing

Asserts that the FinderBase matches nothing in the available candidates.

Sample code

expect(find.text('Save'), findsNothing);

See also:

  • findsAny, when you want the finder to find one or more candidates.
  • 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 findsNothing = _FindsCountMatcher(null, 0);