expectAllEmissions method

void expectAllEmissions(
  1. bool predicate(
    1. StreamStatus<TState>
    ), [
  2. String? reason
])

Asserts that all emissions match the predicate.

Implementation

void expectAllEmissions(
  bool Function(StreamStatus<TState>) predicate, [
  String? reason,
]) {
  expect(
    _emissions.every(predicate),
    isTrue,
    reason: reason ?? 'Not all emissions matched the predicate',
  );
}