emitsCount static method

Matcher emitsCount(
  1. int expectedCount
)

Matches when a Velo notifier emits exactly the expected number of states.

Implementation

static Matcher emitsCount(int expectedCount) {
  ArgumentError.checkNotNull(expectedCount, 'expectedCount');
  if (expectedCount < 0) {
    throw ArgumentError.value(
      expectedCount,
      'expectedCount',
      'Cannot be negative',
    );
  }
  return _EmitsCountMatcher(expectedCount);
}