AIState<T> constructor

const AIState<T>({
  1. T? data,
  2. bool loading = false,
  3. Exception? error,
  4. AIStatus status = AIStatus.idle,
  5. int progress = 0,
  6. CostSummary? cost,
  7. bool budgetExceeded = false,
})

Creates an AIState instance

Implementation

const AIState({
  this.data,
  this.loading = false,
  this.error,
  this.status = AIStatus.idle,
  this.progress = 0,
  this.cost,
  this.budgetExceeded = false,
});