performFetch method

  1. @protected
Future<T> performFetch()

Perform the actual fetch with retry logic. Intended to be overridden by subclasses like ZenInfiniteQuery.

Implementation

@protected
Future<T> performFetch() async {
  // Cancel previous pending request if any
  _cancelPendingRequest();

  activeFetches.value++;
  try {
    return await _fetchWithRetry();
  } finally {
    activeFetches.value--;
  }
}