update method
T
update(
- T fn(
- T
Updates the contained value using fn
and returns the new value
Implementation
T update(T Function(T) fn) {
_val = fn(_val);
return _val;
}
Updates the contained value using fn
and returns the new value
T update(T Function(T) fn) {
_val = fn(_val);
return _val;
}