Question<T extends QuestionOption> constructor

Question<T extends QuestionOption>({
  1. required int id,
  2. required String question,
  3. required List<T> option,
  4. int? answer,
})

Implementation

Question({
  required this.id,
  required this.question,
  required this.option,
  this.answer,
});