expand<S> method
- Iterable<
S> convert(- Telement
Transforms each element of this stream into a sequence of elements.
Returns a new stream where each element of this stream is replacedby zero or more data events.The event values are provided as anIterable by a call toconvertwith the element as argument, and the elements of that iterable isemitted in iteration order.If callingconvert throws, or if the iteration of the returned valuesthrows, the error is emitted on the returned stream and iteration endsfor that element of this stream.
Error events and the done event of this stream are forwarded directlyto the returned stream.
The returned stream is a broadcast stream if this stream is.If a broadcast stream is listened to more than once, each subscriptionwill individually callconvert and expand the events.
Implementation
Stream<S> expand<S>(Iterable<S> convert(T element)) { return _ExpandStream<T, S>(this, convert);}