ValueConnectableObservable<T> constructor

ValueConnectableObservable<T>(Stream<T> source)

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

Implementation

factory ValueConnectableObservable(Stream<T> source) =>
    ValueConnectableObservable<T>._(
      source,
      BehaviorSubject<T>(),
    );