verifyStateEmitted method

void verifyStateEmitted(
  1. T expectedState
)

Verifies that the specified state was emitted.

Implementation

void verifyStateEmitted(T expectedState) {
  _checkNotDisposed();
  expect(
    _stateHistory.contains(expectedState),
    isTrue,
    reason: 'Expected state $expectedState was not emitted',
  );
}