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,
  );
}