Invalidate queries matching pattern
void invalidateQueries(bool Function(String key) predicate) { for (final key in _queries.keys) { if (predicate(key)) { invalidateQuery(key); } } }