getPageToRoute<T> method

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

Implementation

GetPageRoute<T> getPageToRoute<T>(GetPage rou, GetPage? unk) {
  while (needRecheck()) {}
  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,
    binding: _r.binding,
    bindings: _r.bindings,
    transitionDuration:
        _r.transitionDuration ?? Get.defaultTransitionDuration,
    transition: _r.transition,
    popGesture: _r.popGesture,
    fullscreenDialog: _r.fullscreenDialog,
    middlewares: _r.middlewares,
  );
}