update method
T
update(
- T update(
- T value
Implementation
T update(T Function(T value) update) {
final newValue = update(value);
value = newValue;
return newValue;
}
T update(T Function(T value) update) {
final newValue = update(value);
value = newValue;
return newValue;
}