existsAtLeastNTimes method

MultiWidgetMatcher<W> existsAtLeastNTimes(
  1. int n
)

Asserts that at least n widgets of type W exist.

Example usage:

spot<ElevatedButton>().existsAtLeastNTimes(2);

See also:

Implementation

MultiWidgetMatcher<W> existsAtLeastNTimes(int n) {
  final atLeast = copyWith(quantityConstraint: QuantityConstraint.atLeast(n));
  return snapshot(atLeast).multi;
}