From f3e2a99b5c27dfe2292d7a09613cd33cc5d3abeb Mon Sep 17 00:00:00 2001 From: Sayed Alfhad Shah Date: Sun, 4 Apr 2021 00:05:29 +0530 Subject: [PATCH] Update quiz_brain.dart It resolves the issue for starting with the second question after every restart --- lib/quiz_brain.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quiz_brain.dart b/lib/quiz_brain.dart index 68e1339..fa0e8c6 100644 --- a/lib/quiz_brain.dart +++ b/lib/quiz_brain.dart @@ -61,6 +61,6 @@ class QuizBrain { //TODO: Step 4 part B - Create a reset() method here that sets the questionNumber back to 0. void reset() { - _questionNumber = 0; + _questionNumber = -1; } }