stream_listenable 1.0.0
stream_listenable: ^1.0.0 copied to clipboard
Bridge Dart Streams into Flutter's Listenable/ValueListenable interfaces. Lazily subscribes and auto-cancels.
1.0.0 #
StreamListenable<T>— wraps aStreamas aListenable(notifies on each emission).StreamValueListenable<T>— wraps aStreamas aValueListenable<T>with an initial value.Stream.asListenable()andStream.asValueListenable()extension methods.- Lazy subscription: subscribes on first listener, cancels on last removal.
notifyOnError/notifyOnDoneoptions onStreamListenable.notifyOnSameValueoption onStreamValueListenableto skip duplicate notifications.