This is my Question Object:
class Question {
String text;
String correctAnswer;
bool answer;
Question(String q, bool a, String ca) {
text = q;
answer = a;
correctAnswer = ca;
}
}
I want to get a List of Questions from Firestore like so:
List<Question> questionBank = [];
Firestore looks like this: firestore
How can i achieve this?