AppRouterDelegate constructor

AppRouterDelegate({
  1. GlobalKey<NavigatorState>? navigatorKey,
  2. List<NavigatorObserver>? observers,
  3. PageObserver? pageObserver,
  4. PagePathMapping? pagePathMapping,
  5. PageStateMapping? stateMapping,
  6. PageInterceptor? pageInterceptor,
  7. TransitionDelegate transitionDelegate = const DefaultTransitionDelegate<dynamic>(),
})

Implementation

AppRouterDelegate({
  GlobalKey<NavigatorState>? navigatorKey,
  this.observers,
  this.pageObserver,
  this.pagePathMapping,
  this.stateMapping,
  this.pageInterceptor,
  this.transitionDelegate = const DefaultTransitionDelegate<dynamic>(),
}) : this.navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>() {
  currentRouterDelegate = this;
}