allowNavigation method

void allowNavigation()

Implementation

void allowNavigation() {
 if (state.nextStep != null) {
    state = state.copyWith(
      currentStep: state.nextStep,
      nextStep: null,
    );
  } else {
    checkNextStep();
  }
}