Iam trying to shorten these steps
List<String> questionText = [
'You can lead a cow down stairs but not up stairs.',
];
List<bool> questionAnswer = [
false,
Combining these 2 List to single in another class but getting error in 'Question'
class Question {
String questionText;
bool questionAnswer;
Question({required String q, required bool a}) {
questionText = q;
questionAnswer = a;
}
}
//Error Here Error Img