emitsCount static method
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);
}