Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:async
  3. Stream<T>
  4. expand<S> method
expand
description

expand<S> method

Stream<S>expand<S>(
  1. Iterable<S>convert(
    1. 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);}
  1. Dart
  2. dart:async
  3. Stream<T>
  4. expand<S> method
Stream class

[8]ページ先頭

©2009-2025 Movatter.jp