operator [] method

V? operator [](
  1. K key
)

Implementation

V? operator [](K key) {
  final V? value = _map.remove(key);
  if (value != null) {
    _map[key] = value;
  }
  return value;
}