StreamWithKeyExtension<T> extension
Extension to add key-based listeners to streams
- on
-
- Stream<
T>
- Stream<
Methods
-
cancelAllListenersWithKeys(
) → void -
Available on Stream<
Method to cancel all listeners for this streamT> , provided by the StreamWithKeyExtension extension -
cancelListener(
{required String key}) → void -
Available on Stream<
Method to cancel a specific listener by keyT> , provided by the StreamWithKeyExtension extension -
listenWithKey(
{required String key, required void onData(T event), Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< T> -
Available on Stream<
Method to listen to a stream with a keyT> , provided by the StreamWithKeyExtension extension