updateValue method
void
updateValue(
- K key,
- V updater(
- V old
Implementation
void updateValue(K key, V Function(V old) updater) {
final old = $[key];
if (old != null) {
this[key] = updater(old);
}
}