operator [] method
- K key
Returns the value for the given key
or null if key
is not in the map
or garbage collected.
Does not support records to act as keys.
Implementation
V? operator [](K key){
if (_isPrimitive(key)) {
return _primitives[key];
} else {
return _objects[key!] as V?;
}
}