next method

void next()

Move to the next step

Implementation

void next() {
  if (_currentStepIndex < steps.length - 1) {
    _currentStepIndex++;
    _showStep();
    onStepChange?.call(_currentStepIndex, steps[_currentStepIndex]);
  } else {
    _complete();
  }
}