findsNComponents function

Matcher findsNComponents(
  1. int n
)

Asserts that the Finder locates the specified number of components in the component tree.

Sample code

expect(find.text('Save'), findsNComponents(2));

See also:

Implementation

Matcher findsNComponents(int n) => _FindsComponentMatcher(n, n);