getPageToRoute<T> method

GetPageRoute<T> getPageToRoute<T>(
  1. GetPage rou,
  2. GetPage? unk,
  3. BuildContext context
)

Implementation

GetPageRoute<T> getPageToRoute<T>(
    GetPage rou, GetPage? unk, BuildContext context) {
  while (needRecheck(context)) {}
  final r = (isUnknown ? unk : rou)!;

  return GetPageRoute<T>(
    page: r.page,
    parameter: r.parameters,
    alignment: r.alignment,
    title: r.title,
    maintainState: r.maintainState,
    routeName: r.name,
    settings: r,
    curve: r.curve,
    showCupertinoParallax: r.showCupertinoParallax,
    gestureWidth: r.gestureWidth,
    opaque: r.opaque,
    customTransition: r.customTransition,
    bindings: r.bindings,
    binding: r.binding,
    binds: r.binds,
    transitionDuration: r.transitionDuration ?? Get.defaultTransitionDuration,
    reverseTransitionDuration:
        r.reverseTransitionDuration ?? Get.defaultTransitionDuration,
    // performIncomeAnimation: _r.performIncomeAnimation,
    // performOutGoingAnimation: _r.performOutGoingAnimation,
    transition: r.transition,
    popGesture: r.popGesture,
    fullscreenDialog: r.fullscreenDialog,
    middlewares: r.middlewares,
  );
}