NotReplayValueConnectableStream<T> constructor

NotReplayValueConnectableStream<T>(
  1. Stream<T> source,
  2. T seedValue, {
  3. bool sync = true,
})

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

Implementation

factory NotReplayValueConnectableStream(Stream<T> source, T seedValue,
        {bool sync = true}) =>
    NotReplayValueConnectableStream._(
      source,
      ValueSubject(seedValue, sync: sync),
    );