operator []= method

  1. @override
void operator []=(
  1. K key,
  2. V value
)
override

Adds an association between key and value.

Throws ArgumentError if an association involving value exists in the map; otherwise, the association is inserted, overwriting any existing association for the key.

Implementation

@override
void operator []=(K key, V value) {
  _add(key, value, false);
}