moveNextState method

void moveNextState()

Implementation

void moveNextState() {
  if (_currentState!.index < _states.length - 1) {
    _currentState = _states[_currentState!.index + 1];
    notifyListeners();
  }
}