invalidate method

bool invalidate(
  1. K key
)

Invalidates and closes the entry associated with key.

Implementation

bool invalidate(K key) {
  final entry = _entries[key];
  if (entry == null) return false;
  _removeEntry(key, entry, close: true);
  return true;
}