operator []= method

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

Associates the key with the given value.

Implementation

void operator []=(K key, V value){
  if (_isPrimitive(key)) {
    _primitives[key] = value;
  } else {
    _objects[key!] = value;
  }
}