How to Replay the Latest Value to Late Subscribers of a Dart Stream Without rxdart's BehaviorSubject
A broadcast StreamController drops every event that fired before you subscribed. Here is a dependency-free BehaviorSubject replacement built on Stream.multi, a replayLatest() extension for existing streams, the async* shortcut that silently loses events, and the StreamBuilder initialData detail, all verified on Dart 3.12.2.