verifyStateEmitted method
void
verifyStateEmitted(
- 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',
);
}