QueryState<DataType, ErrorType> constructor

const QueryState<DataType, ErrorType>({
  1. DataType? data,
  2. ErrorType? error,
  3. required DateTime updatedAt,
  4. required Duration staleDuration,
  5. bool loading = false,
})

Implementation

const QueryState({
  this.data,
  this.error,
  required this.updatedAt,
  required this.staleDuration,
  bool loading = false,
}) : _loading = loading;