remove method

void remove(
  1. Query query
)

Removes and destroys query when it is the cached instance.

Implementation

void remove(Query<dynamic> query) {
  if (identical(_queries[query.key.canonical], query)) {
    query.destroy();
    _queries.remove(query.key.canonical);
    notify(QueryCacheEvent(QueryCacheEventType.removed, query));
  }
}