FutureHookOptions constructor Null safety

FutureHookOptions(
  1. {bool manual = false,
  2. dynamic initialData,
  3. dynamic onSuccess(
    1. dynamic data,
    2. dynamic params
    )?,
  4. dynamic onError(
    1. dynamic error,
    2. dynamic params
    )?,
  5. String? cacheKey,
  6. dynamic defaultParams,
  7. int loadingDelay = 0,
  8. int pollingInterval = 0}
)

构建

Implementation

FutureHookOptions({
  this.manual = false,
  this.initialData,
  // this.refreshDeps = const [],
  this.onSuccess,
  this.onError,
  this.cacheKey,
  this.defaultParams,
  this.loadingDelay = 0,
  this.pollingInterval = 0,
  // this.pollingWhenHidden = true,
  // this.debounceInterval = 500,
});