updateAll method

void updateAll(
  1. V update(
    1. K key,
    2. V fallback
    )
)

Update all values

Implementation

void updateAll(V Function(K key, V value) update) {
  final newMap = Map<K, V>.from(value);
  newMap.updateAll(update);
  value = newMap;
}