update method
T
update(
- T fn(
- T
Updates the contained value using fn
and returns the new value
Implementation
@pragma("vm:prefer-inline")
T update(T Function(T) fn) {
_val = fn(_val);
return _val;
}