SwitchIfEmptyStreamTransformer<S> constructor
SwitchIfEmptyStreamTransformer<S> (
- Stream<
S> fallbackStream
Constructs a StreamTransformer which, when the source Stream emits
no events, switches over to fallbackStream
.
Implementation
SwitchIfEmptyStreamTransformer(this.fallbackStream);