SwitchMapStreamTransformer<S, T> constructor

SwitchMapStreamTransformer<S, T>(
  1. Stream<T> mapper(
    1. S value
    )
)

Constructs a StreamTransformer which maps each event from the source Stream using mapper.

The mapped Stream will be be listened to and begin emitting items, and any previously created mapper Streams will stop emitting.

Implementation

SwitchMapStreamTransformer(this.mapper);