previous method

void previous()

Move to the previous step

Implementation

void previous() {
  if (_currentStepIndex > 0) {
    _currentStepIndex--;
    _showStep();
    onStepChange?.call(_currentStepIndex, steps[_currentStepIndex]);
  }
}