ZenQueryConsumer<T> constructor

const ZenQueryConsumer<T>({
  1. Key? key,
  2. required Object queryKey,
  3. required ZenQueryFetcher<T> fetcher,
  4. required Widget data(
    1. T data
    ),
  5. Widget loading()?,
  6. Widget error(
    1. Object error,
    2. VoidCallback retry
    )?,
  7. Widget idle()?,
  8. ZenQueryConfig<T>? config,
  9. T? initialData,
  10. bool autoFetch = true,
  11. bool showStaleData = true,
})

Implementation

const ZenQueryConsumer({
  super.key,
  required this.queryKey,
  required this.fetcher,
  required this.data,
  this.loading,
  this.error,
  this.idle,
  this.config,
  this.initialData,
  this.autoFetch = true,
  this.showStaleData = true,
});