replace method

  1. @override
void replace(
  1. K key,
  2. V value
)
override

Replaces any existing associations(s) involving key and value.

If an association involving key or value exists in the map, it is removed.

Implementation

@override
void replace(K key, V value) {
  _add(key, value, true);
}