QueryJob<DataType, ErrorType, ArgsType> constructor
const
QueryJob<DataType, ErrorType, ArgsType> ({
- required String queryKey,
- required QueryJobFn<
DataType, ArgsType> task, - DataType? initial,
- RetryConfig? retryConfig,
- RefreshConfig? refreshConfig,
- JsonConfig<
DataType> ? jsonConfig, - bool enabled = true,
Implementation
const QueryJob({
required this.queryKey,
required this.task,
this.initial,
this.retryConfig,
this.refreshConfig,
this.jsonConfig,
this.enabled = true,
}) : assert(
(jsonConfig != null && enabled) || jsonConfig == null,
'jsonConfig is only supported when enabled is true',
);