HopeOptions constructor

const HopeOptions({
  1. Duration staleTime = Duration.zero,
  2. Duration? refetchInterval,
  3. int retryCount = 3,
  4. Duration retryDelay = const Duration(seconds: 2),
  5. bool enabled = true,
  6. bool refetchOnResume = true,
})

When true, never calls the fetcher. Serves from cache only. Returns empty state if nothing is cached.

Implementation

const HopeOptions({
  this.staleTime = Duration.zero,
  this.refetchInterval,
  this.retryCount = 3,
  this.retryDelay = const Duration(seconds: 2),
  this.enabled = true,
  this.refetchOnResume = true,
});