invalidateQueries method

void invalidateQueries(
  1. String queryKey
)

Invalidates a query, causing it to be refetched.

Implementation

void invalidateQueries(String queryKey) {
  final controller = cache.get(queryKey);
  if (controller != null) {
    controller.refetch();
  }
}