clear method
void
clear()
Removes every query, one QueryRemoved each.
Prefer QueryClient.clear: it calls this together with the mutation
cache's, inside one notifyManager.batch, so a deferred subscriber gets
one flush for the call. The notify manager belongs to the client, not
to this cache, so calling this directly delivers the removals
unbatched.
Implementation
void clear() {
for (final query in queries) {
remove(query);
}
}