UseQueryOptions<TData, TError> constructor

UseQueryOptions<TData, TError>({
  1. required bool enabled,
  2. RefetchOnMount? refetchOnMount,
  3. Duration? staleDuration,
  4. Duration? cacheDuration,
  5. Duration? refetchInterval,
  6. int retryCount = 3,
  7. Duration retryDelay = const Duration(seconds: 1, milliseconds: 500),
})

Implementation

UseQueryOptions({
  required this.enabled,
  this.refetchOnMount,
  this.staleDuration,
  this.cacheDuration,
  this.refetchInterval,
  this.retryCount = 3,
  this.retryDelay = const Duration(seconds: 1, milliseconds: 500),
});