next method
void
next()
Move to the next step
Implementation
void next() {
if (!_isRunning) return;
final currentStep = steps[_currentStepIndex];
if (currentStep.isLast || _currentStepIndex >= steps.length - 1) {
_complete();
} else {
_currentStepIndex++;
_showStep();
onStepChange?.call(_currentStepIndex, steps[_currentStepIndex]);
}
}