updateAll method

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

Updates all values.

Iterates over all entries in the map and updates them with the result of invoking update.

Implementation

void updateAll(V update(K key, V value)) {
  var root = _root;
  if (root == null) return;
  var iterator = _SplayTreeMapEntryIterator(this);
  while (iterator.moveNext()) {
    var node = iterator.current;
    var newValue = update(node.key, node.value);
    iterator._replaceValue(newValue);
  }
}