User constructor

const User({
  1. required int id,
  2. DateTime? fetchedAt,
  3. required String studentId,
  4. required String nameZh,
  5. String? nameEn,
  6. DateTime? dateOfBirth,
  7. String? programZh,
  8. String? programEn,
  9. String? departmentZh,
  10. String? departmentEn,
  11. required String avatarFilename,
  12. required String email,
  13. int? passwordExpiresInDays,
  14. DateTime? semestersFetchedAt,
})

Implementation

const User({
  required this.id,
  this.fetchedAt,
  required this.studentId,
  required this.nameZh,
  this.nameEn,
  this.dateOfBirth,
  this.programZh,
  this.programEn,
  this.departmentZh,
  this.departmentEn,
  required this.avatarFilename,
  required this.email,
  this.passwordExpiresInDays,
  this.semestersFetchedAt,
});