Teacher constructor

  1. @Implements<Identity>()
const Teacher({
  1. required String id,
  2. required String idOfSchool,
  3. required String name,
  4. required SchoolTaiwan school,
  5. required List<Group> students,
})

Implementation

@Implements<Identity>()
const factory Teacher({
  required String id,
  required String idOfSchool,
  required String name,
  required SchoolTaiwan school,
  required List<Group> students,
}) = _Teacher;