next method

void next()

Moves to the next step, or finishes the tour when on the last one.

Implementation

void next() {
  final String? tour = _activeTour;
  if (tour == null) {
    return;
  }
  if (isLast) {
    finish();
    return;
  }
  _index++;
  notifyListeners();
  _stepChanged(tour);
}