updateAll method

*<Null safety>*
  • @override

void updateAll (V update(K key, V value)) override

Implementation

@override
void updateAll(V Function(K key, V value) update) =>
    _base.updateAll((_, pair) {
      var value = pair.value;
      var key = pair.key;
      var newValue = update(key, value);
      if (identical(value, newValue)) return pair;
      return MapEntry(key, newValue);
    });