ValueNotifierUpdater<T> extension
The ValueNotifierUpdater extension provides an update method for ValueNotifier objects, allowing you to update their values while notifying listeners. The extension method accepts a function that takes the current value of the ValueNotifier and returns a new value. It updates the ValueNotifier with the new value, notifies its listeners, and keeps the reference to the same instance of the ValueNotifier.
- on
Methods
-
update(
void update(T)) → void -
Available on ValueNotifier<
T> , provided by the ValueNotifierUpdater extension