remove method

V? remove(
  1. K key
)

Implementation

V? remove(K key) {
  final V? existing = _entries.remove(key);
  if (existing == null) return null;
  _bytes -= _sizes.remove(key) ?? 0;
  onEvict?.call(key, existing);
  return existing;
}