hasState<S> static method

Matcher hasState<S>(
  1. S expectedState
)

Matches when a Velo notifier's current state equals the expected state.

Implementation

static Matcher hasState<S>(S expectedState) {
  ArgumentError.checkNotNull(expectedState, 'expectedState');
  return _HasStateMatcher<S>(expectedState);
}