ZenQueryConsumer<T> constructor
const
ZenQueryConsumer<T> ({
- Key? key,
- required Object queryKey,
- required ZenQueryFetcher<
T> fetcher, - required Widget data(
- T data
- Widget loading()?,
- Widget error(
- Object error,
- VoidCallback retry
- Widget idle()?,
- ZenQueryConfig<
T> ? config, - T? initialData,
- bool autoFetch = true,
- 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,
});