publishBehavior method

ConnectableObservable<T> publishBehavior(
  1. T value
)

Creates a ConnectableObservable that emits its initial or last seen value to its subscribers.

Implementation

ConnectableObservable<T> publishBehavior(T value) =>
    multicast(subject: BehaviorSubject<T>(value));