cancelSurvey method

void cancelSurvey()

Cancels the survey and resets all steps.

Implementation

void cancelSurvey() {
  currentStepIndex = 0;
  stepPageController.jumpToPage(0);
  notifyListeners();
  Navigator.of(context).pop();
}