Test constructor
const
Test({
- required String id,
- required String name,
- required DateTime start,
- required DateTime end,
- @Default('') String description,
- required Object content,
- required Ability ability,
- @Default(TestStatus.preparing) TestStatus status,
- @Default(QuizStatus.unfinished) QuizStatus statusValidation,
- required List<
DateTime> statusChanges,
Implementation
const factory Test({
required String id,
required String name,
required DateTime start,
required DateTime end,
@Default('') String description,
required Object content,
required Ability ability,
@Default(TestStatus.preparing) TestStatus status,
@Default(QuizStatus.unfinished) QuizStatus statusValidation,
required List<DateTime> statusChanges,
}) = _Test;