StreamWithKeyExtension<T> extension

Extension to add key-based listeners to streams

on

Methods

cancelAllListenersWithKeys() → void

Available on Stream<T>, provided by the StreamWithKeyExtension extension

Method to cancel all listeners for this stream
cancelListener({required String key}) → void

Available on Stream<T>, provided by the StreamWithKeyExtension extension

Method to cancel a specific listener by key
listenWithKey({required String key, required void onData(T event), Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<T>

Available on Stream<T>, provided by the StreamWithKeyExtension extension

Method to listen to a stream with a key