QueryJob<DataType, ErrorType, ArgsType> constructor

const QueryJob<DataType, ErrorType, ArgsType>({
  1. required String queryKey,
  2. required QueryJobFn<DataType, ArgsType> task,
  3. DataType? initial,
  4. RetryConfig? retryConfig,
  5. RefreshConfig? refreshConfig,
  6. JsonConfig<DataType>? jsonConfig,
  7. 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',
      );