destination library Null safety

Classes

BadDestination
Predefined Destination that represents navigation errors. Similar to 404 page for web.
The class controls the navigation, it serves as RouterDelegate for the Router. Also it holds the current NavigationStack and provides interface to update it.
Describes the Destination and all its ancestors
An implementation of RouteInformationParser that works with NavigationStack.
PageFactory
A class that builds Page from NavigationStack. It is the only way to assocaited NavigationStack with UI.

Mixins

Destination
The type to describe the navigation destination

Extensions

DestinationExtension
Make Destination aware of NavigationStack

Properties

Signature to provide NavigationController instance
read-only

Functions

registerNavigationControllerProvider(NavigationControllerProvider provider) → void
Register the NavigationControllerProvider. It provides NavigationController which can be later accessed via navigationController

Typedefs

DestionPredicate = bool Function(Destination d)
Check wither destionation satifies the criteria.
Signature of function that returns a NavigationController
PageBuilder = Page Function(BuildContext context, NavigationStack stack)
A function that produces a Page out of stack
ScreenWidgetBuilder = Widget Function(BuildContext context, NavigationStack stack)
A function that produces the root widget of the Page associated with stack