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

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