updateValue method

void updateValue(
  1. K key,
  2. V updater(
    1. V old
    )
)

Implementation

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