ListenableSelectExtension<L extends Listenable> extension
utils
A helper extension that adds a select method to Listenable. It allows listening to a specific value of the Listenable (selector), triggering the listener only when that value changes.
- on
-
- L
Methods
-
select<
T extends Object?> (T selector(L listenable), void listener(L listenable, T value), {bool shouldNotify(T previous, T current)?}) → ListenableSelectSubscription< T> -
Available on L, provided by the ListenableSelectExtension extension
Listen to a specific value of the Listenable.