nextStep method

void nextStep()

Advances to the next onboarding step.

If this is the last step, the onboarding will finish automatically. Notifies listeners of the state change.

Implementation

void nextStep() {
  if (_currentStep < steps.length - 1) {
    _currentStep++;
    notifyListeners();
    _updateOverlay();
  } else {
    finishGuide();
  }
}