evict method

bool evict(
  1. Object key
)

Evicts a completed entry or invalidates its pending load, returning true if found.

Implementation

bool evict(Object key) {
  final hadPending = _pending.remove(key) != null;
  final hadCached = _remove(key) != null;
  return hadPending || hadCached;
}