next method

void next()

Moves to the next step if possible.

Implementation

void next() {
  if (_stepCount == 0) return;
  if (_currentIndex < _stepCount - 1) {
    _currentIndex++;
    notifyListeners();
  }
}