invalidateQueries method

void invalidateQueries(
  1. bool predicate(
    1. String key
    )
)

Invalidate queries matching pattern

Implementation

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