backOnSignUpView method

dynamic backOnSignUpView(
  1. BuildContext context
)

Implementation

backOnSignUpView(BuildContext context) {
  if (routeStack.last == PageView.signUpView) {
    for (int i = 0; i < routeStack.length; i++) {
      if (routeStack[(routeStack.length - 1)] == PageView.phoneView) {
        break;
      } else {
        printLogs("PAGE STACK ${routeStack[routeStack.length - 1]}");
        routeStack.removeLast();
        routeStack.refresh();
        Navigator.pop(context);
      }
    }
  }
}