DefaultIfEmptyStreamTransformer<S> constructor

DefaultIfEmptyStreamTransformer<S>(
  1. S defaultValue
)

Constructs a StreamTransformer which either emits from the source Stream, or just a defaultValue if the source Stream emits nothing.

Implementation

DefaultIfEmptyStreamTransformer(this.defaultValue);