Exam constructor
const
Exam({
- required String id,
- required String name,
- required DateTime start,
- required DateTime end,
- @Default('') String description,
- required Object content,
- required Certificate certificate,
- @Default(ExamStatus.preparing) ExamStatus status,
- @Default(QuizStatus.unfinished) QuizStatus statusValidation,
- required List<
DateTime> statusChanges,
Implementation
const factory Exam({
required String id,
required String name,
required DateTime start,
required DateTime end,
@Default('') String description,
required Object content,
required Certificate certificate,
@Default(ExamStatus.preparing) ExamStatus status,
@Default(QuizStatus.unfinished) QuizStatus statusValidation,
required List<DateTime> statusChanges,
}) = _Exam;