onQuestionDone method
Implementation
void onQuestionDone(FoQuestionModel question) {
if (disabled) {
return;
}
activeIndex = model.questions.indexOf(question);
if (activeIndex == model.questions.length - 1) {
_doneController.add(FoQuizDoneEvent(_calcScore(model), maxPoints));
} else {
activeIndex++;
activeQuestion = model.questions[activeIndex];
}
}