RestQueryClientProvider constructor

const RestQueryClientProvider({
  1. Key? key,
  2. required HttpBaseQuery baseQuery,
  3. required Widget child,
  4. QueryClient? client,
  5. QueryCache? cache,
  6. Duration cacheDuration = DefaultConstants.cacheDuration,
  7. Duration? retryDelay,
  8. Duration? staleDuration,
  9. Duration? refreshInterval,
  10. int? maxRetries,
  11. bool? refreshOnMount,
  12. dynamic onError(
    1. dynamic error,
    2. dynamic raison
    )?,
  13. bool? refreshOnQueryFnChange,
})

Implementation

const RestQueryClientProvider(
    {super.key,
    required this.baseQuery,
    required this.child,
    this.client,
    this.cache,
    this.cacheDuration = DefaultConstants.cacheDuration,
    this.retryDelay,
    this.staleDuration,
    this.refreshInterval,
    this.maxRetries,
    this.refreshOnMount,
    this.onError,
    this.refreshOnQueryFnChange});