Results constructor Null safety

Results(
  1. {required String category,
  2. required String type,
  3. required String difficulty,
  4. required String question,
  5. required String correctAnswer,
  6. required List<String> incorrectAnswers}
)

Implementation

Results(
    {required this.category,
        required this.type,
        required this.difficulty,
        required this.question,
        required this.correctAnswer,
        required this.incorrectAnswers});