previousStep method

void previousStep()

Goes back to the previous onboarding step.

Does nothing if already on the first step. Notifies listeners of the state change.

Implementation

void previousStep() {
  if (_currentStep > 0) {
    _currentStep--;
    notifyListeners();
    _updateOverlay();
  }
}