SwitchIfEmptyStreamTransformer<S> constructor

SwitchIfEmptyStreamTransformer<S>(
  1. Stream<S> fallbackStream
)

Constructs a StreamTransformer which, when the source Stream emits no events, switches over to fallbackStream.

Implementation

SwitchIfEmptyStreamTransformer(this.fallbackStream);