remove method

V? remove(
  1. K key
)

Removes the entry for key and returns its value, or null if key is not in the cache.

Implementation

V? remove(K key) => _cache.remove(key);