Question constructor

Question({
  1. int? id,
  2. required String title,
  3. String? description,
  4. AnswerTypeEnum? answerType,
  5. List<QuestionOption> options = const [],
})

Returns a new Question instance.

Implementation

Question({
  this.id,
  required this.title,
  this.description,
  this.answerType,
  this.options = const [],
});