Course constructor

const Course({
  1. required int id,
  2. DateTime? fetchedAt,
  3. required String code,
  4. required double credits,
  5. required int hours,
  6. String? nameEn,
  7. String? nameZh,
  8. String? descriptionEn,
  9. String? descriptionZh,
})

Implementation

const Course({
  required this.id,
  this.fetchedAt,
  required this.code,
  required this.credits,
  required this.hours,
  this.nameEn,
  this.nameZh,
  this.descriptionEn,
  this.descriptionZh,
});