ZenQueryConfig<T> constructor
const
ZenQueryConfig<T> ({
- Duration? staleTime,
- Duration? cacheTime,
- RefetchBehavior? refetchOnMount,
- RefetchBehavior? refetchOnFocus,
- RefetchBehavior? refetchOnReconnect,
- NetworkMode? networkMode,
- Duration? refetchInterval,
- bool? enableBackgroundRefetch,
- int? retryCount,
- Duration? retryDelay,
- RetryDelayFn? retryDelayFn,
- Duration? maxRetryDelay,
- double? retryBackoffMultiplier,
- bool? exponentialBackoff,
- bool? retryWithJitter,
- bool? retryWhenOnline,
- bool? autoPauseOnBackground,
- bool? refetchOnResume,
- bool? persist,
- T fromJson()?,
- Map<
String, dynamic> toJson(- T data
- ZenStorage? storage,
- T? placeholderData,
Implementation
const ZenQueryConfig({
Duration? staleTime,
Duration? cacheTime,
RefetchBehavior? refetchOnMount,
RefetchBehavior? refetchOnFocus,
RefetchBehavior? refetchOnReconnect,
NetworkMode? networkMode,
this.refetchInterval,
bool? enableBackgroundRefetch,
int? retryCount,
Duration? retryDelay,
this.retryDelayFn,
Duration? maxRetryDelay,
double? retryBackoffMultiplier,
bool? exponentialBackoff,
bool? retryWithJitter,
bool? retryWhenOnline,
bool? autoPauseOnBackground,
bool? refetchOnResume,
bool? persist,
this.fromJson,
this.toJson,
this.storage,
this.placeholderData,
}) : _staleTime = staleTime,
_cacheTime = cacheTime,
_refetchOnMount = refetchOnMount,
_refetchOnFocus = refetchOnFocus,
_refetchOnReconnect = refetchOnReconnect,
_networkMode = networkMode,
_enableBackgroundRefetch = enableBackgroundRefetch,
_retryCount = retryCount,
_retryDelay = retryDelay,
_maxRetryDelay = maxRetryDelay,
_retryBackoffMultiplier = retryBackoffMultiplier,
_exponentialBackoff = exponentialBackoff,
_retryWithJitter = retryWithJitter,
_retryWhenOnline = retryWhenOnline,
_autoPauseOnBackground = autoPauseOnBackground,
_refetchOnResume = refetchOnResume,
_persist = persist;