Course constructor

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

Implementation

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