QueryPolicy constructor

const QueryPolicy({
  1. QueryFreshness? freshness,
  2. Duration? gcTime,
  3. QueryRetry? retry,
  4. Duration retryDelay(
    1. int failureCount,
    2. Object error
    )?,
  5. QueryNetworkMode? networkMode,
  6. QueryRefetchPolicy? refetchOnMount,
  7. QueryRefetchPolicy? refetchOnFocus,
  8. QueryRefetchPolicy? refetchOnReconnect,
  9. Duration? refetchInterval,
  10. bool? refetchInBackground,
  11. bool? enabled,
  12. 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,
});