GetDelegate.createDelegate constructor

GetDelegate.createDelegate({
  1. GetPage? notFoundRoute,
  2. List<GetPage> pages = const [],
  3. List<NavigatorObserver>? navigatorObservers,
  4. TransitionDelegate? transitionDelegate,
  5. PopMode backButtonPopMode = PopMode.history,
  6. PreventDuplicateHandlingMode preventDuplicateHandlingMode = PreventDuplicateHandlingMode.reorderRoutes,
  7. GlobalKey<NavigatorState>? navigatorKey,
})

Implementation

factory GetDelegate.createDelegate({
  GetPage<dynamic>? notFoundRoute,
  List<GetPage> pages = const [],
  List<NavigatorObserver>? navigatorObservers,
  TransitionDelegate<dynamic>? transitionDelegate,
  PopMode backButtonPopMode = PopMode.history,
  PreventDuplicateHandlingMode preventDuplicateHandlingMode =
      PreventDuplicateHandlingMode.reorderRoutes,
  GlobalKey<NavigatorState>? navigatorKey,
}) {
  return GetDelegate(
    notFoundRoute: notFoundRoute,
    navigatorObservers: navigatorObservers,
    transitionDelegate: transitionDelegate,
    backButtonPopMode: backButtonPopMode,
    preventDuplicateHandlingMode: preventDuplicateHandlingMode,
    pages: pages,
    navigatorKey: navigatorKey,
  );
}