refetch method

Future<T>? refetch()

Refetches the query using the most recent fetcher and configuration.

Implementation

Future<T>? refetch() {
  if (_latestFetcher != null) {
    return fetch(
      fetcher: _latestFetcher!,
      staleTime: Duration.zero,
      cacheTime: _latestCacheTime,
      retries: _latestRetries,
    );
  }
  return null;
}