remove method

  1. @override
V? remove(
  1. K k
)
override

Remove value by key

Implementation

@override
V? remove(K k) {
  final val = _cache[k];

  val?.dispose();

  return _cache.remove(k)?.value;
}