update method
- T updater(
- T current
Utility functionally updating the value safely.
Implementation
void update(T Function(T current) updater) {
value = updater(value);
}
Utility functionally updating the value safely.
void update(T Function(T current) updater) {
value = updater(value);
}