Course constructor

const Course({
  1. required String id,
  2. @Default(null) String? v,
  3. required String name,
  4. @Default('') String description,
  5. required List<Event> schedule,
  6. required List<Assignment> assignments,
  7. required List<Test> tests,
  8. required CourseStatus status,
  9. required List<DateTime> statusChanges,
  10. @Default(null) Object? attachment,
})

Implementation

const factory Course({
  required String id,
  @Default(null) String? v,
  required String name,
  @Default('') String description,
  required List<Event> schedule,
  required List<Assignment> assignments,
  required List<Test> tests,
  required CourseStatus status,
  required List<DateTime> statusChanges,
  @Default(null) Object? attachment,
}) = _Course;