removeQuery method

void removeQuery(
  1. Object queryKey
)

Remove query from cache

Implementation

void removeQuery(Object queryKey) {
  // Changed to Object
  final normalizedKey = QueryKey.normalize(queryKey);
  _cache[normalizedKey]?.expiryTimer?.cancel();
  _cache.remove(normalizedKey);
  _queries.remove(normalizedKey);
  _pendingFetches.remove(normalizedKey);
}