questions top-level property
Implementation
final List<Question> questions = [
Question(
question: "What is the capital of France?",
options: ["Paris", "London", "Berlin", "Madrid"],
correctAnswer: 0,
),
Question(
question: "What is 2 + 2?",
options: ["3", "4", "5", "6"],
correctAnswer: 1,
),
Question(
question: "Which planet is known as the Red Planet?",
options: ["Earth", "Mars", "Jupiter", "Saturn"],
correctAnswer: 1,
),
Question(
question: "What is the largest ocean on Earth?",
options: ["Atlantic", "Indian", "Pacific", "Arctic"],
correctAnswer: 2,
),
Question(
question: "Who wrote 'Romeo and Juliet'?",
options: ["Shakespeare", "Hemingway", "Tolstoy", "Austen"],
correctAnswer: 0,
),
];