delete method

V? delete(
  1. K key
)

Removes key from the database.

The previous value for key, if any, is returned. If there was no previous value then the return value is null.

Implementation

V? delete(K key) {
  var rv = _map.remove(key);
  _streamController.add(Tuple2<K, V?>(key, null));
  return rv;
}