RequestOptions<T> constructor

const RequestOptions<T>({
  1. bool manual = false,
  2. T? initialData,
  3. Duration? debounceInterval,
  4. Duration? throttleInterval,
  5. Duration? pollingInterval,
  6. bool pollingWhenHidden = true,
  7. Duration? loadingDelay,
  8. int retryCount = 0,
  9. String? cacheKey,
  10. void onSuccess(
    1. T data
    )?,
  11. void onError(
    1. Object error
    )?,
  12. void onFinally()?,
})

Implementation

const RequestOptions({
  this.manual = false,
  this.initialData,
  this.debounceInterval,
  this.throttleInterval,
  this.pollingInterval,
  this.pollingWhenHidden = true,
  this.loadingDelay,
  this.retryCount = 0,
  this.cacheKey,
  this.onSuccess,
  this.onError,
  this.onFinally,
});