update method
void
update(
- T updateValue(
- T oldValue
Updates the current value of the Pod via updateValue
and calls
notifyListeners if the returned value is different from the current
value.
Implementation
void update(T Function(T oldValue) updateValue) {
final newValue = updateValue(value);
_set(newValue);
}