getNextButtonText method

String getNextButtonText()

Implementation

String getNextButtonText() {
  if (steppingModeType == QuizSteppingModeTypes.step_by_step) {
    if (isLastStep) {
      return dictionnary.terminate;
    }
  }

  if (steppingModeType == QuizSteppingModeTypes.question_by_question) {
    if (isLastStep && isLastStepQuestion) {
      return dictionnary.terminate;
    }
  }

  return dictionnary.next;
}