GamePage constructor Null safety

const GamePage(
  1. {Key? key,
  2. required String title,
  3. required Questionnaire questionnaire,
  4. required bool singleCategory,
  5. required String duration,
  6. required Map penaltyQuestions,
  7. required String currentCategory}
)

Implementation

const GamePage({super.key, required this.title, required this.questionnaire, required this.singleCategory, required this.duration, required this.penaltyQuestions, required this.currentCategory});