getNavigatorPushNamed method

dynamic getNavigatorPushNamed()

Implementation

getNavigatorPushNamed() async {
  try {
    /*BooksController booksController = Get.find<BooksController>();
    booksController.getBooks();
    if (_latestUri != null) {
      switch (_latestUri?.path) {
        case RouteHelper.homeDefault:
        case RouteHelper.routeBooks:
          String liv = TypeSafeConversion.nullSafeString(_latestUri?.queryParameters[RouteHelper.livVar]);
          int chap = TypeSafeConversion.nullSafeInt( _latestUri?.queryParameters[RouteHelper.chapVar] );
          int ver = TypeSafeConversion.nullSafeInt( _latestUri?.queryParameters[RouteHelper.verVar] );
          logCat('routeBooks: liv: $liv | chap:$chap | ver:$ver');
          var bookSelected = BooksModel();
          bookSelected = booksController.booksList![booksController.booksList!.indexWhere((e) => e.osis == liv)];
          bookSelected.chaptersSelected = chap;
          bookSelected.versetSelected = ver;
          booksController.setBookSelected( bookSelected );

          break;
        case RouteHelper.routePlanDeLectureDetails:
          String codeLecture = TypeSafeConversion.nullSafeString(_latestUri?.queryParameters[RouteHelper.codeLectureVar]);
          logCat('01-codeLecture: $codeLecture');
          RouteHelper.navPlanDeLectureDetails(codeLecture: codeLecture, codeSubscription: '');
          break;
        case RouteHelper.informationScreen:
          String pageVar = TypeSafeConversion.nullSafeString(_latestUri?.queryParameters[RouteHelper.pageVar]);
          logCat('01-pageVar: $pageVar');
          RouteHelper.navInformationScreen(page: pageVar);
          break;
        // case Constant.routeQuizUser:
        //   showDialogProgress(show: true);
        //   //String codeForm = _deepLinks.queryParams[0].value.first;
        //   showDialogProgress(show: false);
        //   Navigator.of(Get.context!).pushNamed( _deepLinks!.latestUriPath!, arguments: _deepLinks);
        //   break;
        default:
          Get.toNamed( TypeSafeConversion.nullSafeString( _latestUri?.path, defaultValue: '/' ), arguments: _latestUri?.queryParameters );
          break;
      }
    }*/
  } catch (ex, trace) {
    logError(ex, trace: trace, position: 'catch::getNavigatorPushNamed');
  }
}