GetNavigator constructor
GetNavigator({})
Implementation
GetNavigator({
required List<GetPage> super.pages,
super.key,
bool Function(Route<dynamic>, dynamic)? onPopPage,
List<NavigatorObserver>? observers,
super.reportsRouteUpdateToEngine,
TransitionDelegate? transitionDelegate,
super.initialRoute,
super.restorationScopeId,
}) : super(
//keys should be optional
onPopPage: onPopPage ??
(Route route, result) {
final bool didPop = route.didPop(result);
if (!didPop) {
return false;
}
return true;
},
observers: <NavigatorObserver>[
// GetObserver(null, Get.routing),
HeroController(),
...?observers,
],
transitionDelegate:
transitionDelegate ?? const DefaultTransitionDelegate<dynamic>(),
);