RestQueryClientProvider constructor
const
RestQueryClientProvider({
- Key? key,
- required HttpBaseQuery baseQuery,
- required Widget child,
- QueryClient? client,
- QueryCache? cache,
- Duration cacheDuration = DefaultConstants.cacheDuration,
- Duration? retryDelay,
- Duration? staleDuration,
- Duration? refreshInterval,
- int? maxRetries,
- bool? refreshOnMount,
- dynamic onError(
- dynamic error,
- dynamic raison
- 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});