Open tlaw22 opened 1 year ago
class Question { final String questionText; final bool questionAnswer;
Question({ required this.questionText, required this.questionAnswer, }); }
// You have to add the required keyword to the constructor.
To delcare a function that is initalized elsewhere. final void Function() onTap;
might as well leave this open.
class Question { final String questionText; final bool questionAnswer;
Question({ required this.questionText, required this.questionAnswer, }); }
// You have to add the required keyword to the constructor.