update method
void
update(
- T fn(
- T? value
Updates the value using a function.
Implementation
void update(T Function(T? value) fn) {
value = fn(value);
}
Updates the value using a function.
void update(T Function(T? value) fn) {
value = fn(value);
}