expectLastStatusIs<T extends StreamStatus<BlocState>> method

void expectLastStatusIs<T extends StreamStatus<BlocState>>([
  1. String? reason
])

Asserts that the last emitted status is of the given type.

Implementation

void expectLastStatusIs<T extends StreamStatus>([String? reason]) {
  expect(lastStatus, isA<T>(), reason: reason);
}