GetNavigator constructor
GetNavigator({
- required List<
GetPage> pages, - Key? key,
- PopPageCallback? onPopPage,
- List<
NavigatorObserver> ? observers, - bool reportsRouteUpdateToEngine = false,
- TransitionDelegate? transitionDelegate,
- String? initialRoute,
- 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>(),
);