Test constructor

const Test({
  1. required String id,
  2. required String name,
  3. required DateTime start,
  4. required DateTime end,
  5. @Default('') String description,
  6. required Object content,
  7. required Ability ability,
  8. @Default(TestStatus.preparing) TestStatus status,
  9. @Default(QuizStatus.unfinished) QuizStatus statusValidation,
  10. 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;