publishReplay method
Creates a ConnectableObservable that replays all its previous values to new subscribers.
Implementation
ConnectableObservable<T> publishReplay({int? bufferSize}) =>
multicast(subject: ReplaySubject<T>(bufferSize: bufferSize));