nextState method

void nextState()

次のステップのStateを作成する

Implementation

void nextState() {
  state = state.copyWith(
    currentIndex: state.currentIndex + 1,
  );
}