FHUValueListenableExtensions<T> extension

on

Properties

stream Stream<T>
Converts the ValueNotifier into a Stream. This stream emits values whenever the value changes. The use of distinct ensures that consecutive duplicate values are filtered out, thus the stream only emits when the value actually changes.
no setter

Methods

debounce(Duration duration, void action(T value)) VoidCallback
Registers a debounced callback which is invoked only after the notifier's value is stable for the specified duration.
onChange(void action(T value)) VoidCallback
Registers a callback to be invoked whenever the ValueNotifier's value changes.