Index constructor

Index({
  1. IndexIdEnum? id,
  2. String? name,
  3. num? value,
  4. IndexUnitEnum? unit,
  5. bool? measured,
  6. String? source_,
  7. bool? historyAvailable,
  8. String? asOf,
  9. String? note,
  10. List<DaiPoint> recentHistory = const [],
})

Returns a new Index instance.

Implementation

Index({
  this.id,
  this.name,
  this.value,
  this.unit,
  this.measured,
  this.source_,
  this.historyAvailable,
  this.asOf,
  this.note,
  this.recentHistory = const [],
});