GetNavigator constructor

GetNavigator({
  1. required List<GetPage> pages,
  2. Key? key,
  3. PopPageCallback? onPopPage,
  4. List<NavigatorObserver>? observers,
  5. bool reportsRouteUpdateToEngine = false,
  6. TransitionDelegate? transitionDelegate,
  7. String? initialRoute,
  8. String? restorationScopeId,
})

Implementation

GetNavigator({
  required List<GetPage> super.pages,
  super.key,
  super.onPopPage,
  List<NavigatorObserver>? observers,
  super.reportsRouteUpdateToEngine,
  TransitionDelegate? transitionDelegate,
  super.initialRoute,
  super.restorationScopeId,
}) : super(
        observers: <NavigatorObserver>[
          // GetObserver(null, Get.routing),
          HeroController(),
          ...?observers,
        ],
        transitionDelegate:
            transitionDelegate ?? const DefaultTransitionDelegate<dynamic>(),
      );