QueryPolicy constructor
const
QueryPolicy({
- QueryFreshness? freshness,
- Duration? gcTime,
- QueryRetry? retry,
- Duration retryDelay()?,
- QueryNetworkMode? networkMode,
- QueryRefetchPolicy? refetchOnMount,
- QueryRefetchPolicy? refetchOnFocus,
- QueryRefetchPolicy? refetchOnReconnect,
- Duration? refetchInterval,
- bool? refetchInBackground,
- bool? enabled,
- bool? structuralSharing,
Creates a partial query policy.
Implementation
const QueryPolicy({
this.freshness,
this.gcTime,
this.retry,
this.retryDelay,
this.networkMode,
this.refetchOnMount,
this.refetchOnFocus,
this.refetchOnReconnect,
this.refetchInterval,
this.refetchInBackground,
this.enabled,
this.structuralSharing,
});