emitsAnyOf<S> static method

Matcher emitsAnyOf<S>(
  1. List<S> expectedStates
)

Matches when a Velo notifier emits any of the expected states.

Implementation

static Matcher emitsAnyOf<S>(List<S> expectedStates) {
  ArgumentError.checkNotNull(expectedStates, 'expectedStates');
  if (expectedStates.isEmpty) {
    throw ArgumentError.value(
      expectedStates,
      'expectedStates',
      'Cannot be empty',
    );
  }
  return _EmitsAnyOfMatcher<S>(expectedStates);
}