navigateToStep method
void
navigateToStep(
Navigates to a specific step in the survey.
Parameters:
- stepIndex: The index of the step to navigate to.
Implementation
void navigateToStep(int stepIndex) {
if (stepIndex >= 0 && stepIndex < steps.length) {
currentStepIndex = stepIndex;
stepPageController.jumpToPage(stepIndex);
notifyListeners();
}
}