Stream map(dynamic convert(T event))

Creates a new stream that converts each element of this stream to a new value using the convert function.

The returned stream is a broadcast stream if this stream is. If a broadcast stream is listened to more than once, each subscription will individually execute map for each event.

Source

Stream/*<S>*/ map/*<S>*/(/*=S*/ convert(T event)) {
  return new _MapStream<T, dynamic/*=S*/>(this, convert);
}