Quiz constructor

const Quiz({
  1. required String id,
  2. required String name,
  3. @Default('') String description,
  4. required Object content,
  5. required Ability ability,
  6. @Default(QuizStatus.unfinished) QuizStatus statusValidation,
  7. required List<DateTime> statusChanges,
})

Implementation

const factory Quiz({
  required String id,
  required String name,
  @Default('') String description,
  required Object content,
  required Ability ability,
  @Default(QuizStatus.unfinished) QuizStatus statusValidation,
  required List<DateTime> statusChanges,
}) = _Quiz;