AdvancedNavigator constructor

AdvancedNavigator({
  1. Key? key,
  2. AdvancedNavigatorState? parent,
  3. String? initialLocation,
  4. Map<String, List<Page> Function(PathArguments)> paths = const {},
  5. PathFactory? onGeneratePath,
  6. PathFactory? onUnknownPath,
  7. Map<String, Page Function(Object?)> pages = const {},
  8. PageFactory? onGeneratePage,
  9. PageFactory? onUnknownPage,
  10. PopPageCallback? onPopPage,
  11. Map<String, Route>? routes,
  12. RouteFactory? onGenerateRoute,
  13. RouteFactory? onUnknownRoute,
  14. BackButtonDispatcher? backButtonDispatcher,
  15. TransitionDelegate transitionDelegate = const DefaultTransitionDelegate<dynamic>(),
  16. bool reportsRouteUpdateToEngine = false,
  17. List<NavigatorObserver> observers = const <NavigatorObserver>[],
  18. String? restorationScopeId,
  19. String? tag,
})

Implementation

AdvancedNavigator({
  Key? key,
  this.parent,
  this.initialLocation,
  this.paths = const {},
  this.onGeneratePath,
  this.onUnknownPath,
  this.pages = const {},
  this.onGeneratePage,
  this.onUnknownPage,
  this.onPopPage,
  this.routes,
  this.onGenerateRoute,
  this.onUnknownRoute,
  this.backButtonDispatcher,
  this.transitionDelegate = const DefaultTransitionDelegate<dynamic>(),
  this.reportsRouteUpdateToEngine = false,
  this.observers = const <NavigatorObserver>[],
  this.restorationScopeId,
  this.tag,
}) : super(key: key);