findsNComponents function
Asserts that the Finder locates the specified number of components in the component tree.
Sample code
expect(find.text('Save'), findsNComponents(2));
See also:
- findsNothing, when you want the finder to not find anything.
- findsComponents, when you want the finder to find one or more components.
- findsOneComponent, when you want the finder to find exactly one component.
Implementation
Matcher findsNComponents(int n) => _FindsComponentMatcher(n, n);