onQuestionPrev method

void onQuestionPrev(
  1. FoQuestionModel question
)

Implementation

void onQuestionPrev(FoQuestionModel question) {
  activeIndex = model.questions.indexOf(question);

  if (activeIndex > 0) {
    activeIndex--;
    activeQuestion = model.questions[activeIndex];
  }
}