publishReplay method

ConnectableObservable<T> publishReplay({
  1. int? bufferSize,
})

Creates a ConnectableObservable that replays all its previous values to new subscribers.

Implementation

ConnectableObservable<T> publishReplay({int? bufferSize}) =>
    multicast(subject: ReplaySubject<T>(bufferSize: bufferSize));