ValueConnectableStream<T>.seeded constructor

ValueConnectableStream<T>.seeded(
  1. Stream<T> source,
  2. T seedValue,
  3. {bool sync: false}
)

Constructs a Stream which only begins emitting events when the connect method is called, this Stream acts like a BehaviorSubject.seeded.

Implementation

factory ValueConnectableStream.seeded(Stream<T> source, T seedValue,
        {bool sync = false}) =>
    ValueConnectableStream<T>._(
      source,
      BehaviorSubject<T>.seeded(seedValue, sync: sync),
    );