PapilioRoutingConfiguration<T> class

Holds the configuration required to build a routing delegate

Constructors

PapilioRoutingConfiguration({required void buildRoutes(PapilioRouterDelegateBuilder<T> delegateBuilder), required T currentRouteConfiguration(Page currentPage), required Future<T> parseRouteInformation(RouteInformation routeInformation), required RouteInformation? restoreRouteInformation(T configuration), required void onInit(PapilioRouterDelegate<T> delegate, IocContainer container), Future<void> onSetNewRoutePath(PapilioRouterDelegate<T> delegate, T configuration)?})
Constructs a PapilioRoutingConfiguration. Use the extension methods for this. You shoudln't need to construct this directly.

Properties

buildRoutes → void Function(PapilioRouterDelegateBuilder<T> delegateBuilder)
Call addPage on the delegateBuilder to add a page to the router.
final
currentRouteConfiguration → T Function(Page currentPage)
Get the route configuration from the current page
final
hashCode int
The hash code for this object.
no setterinherited
onInit ↔ void Function(PapilioRouterDelegate<T> delegate, IocContainer container)
Use this to navigate to the first page in the app
getter/setter pair
onSetNewRoutePath ↔ (Future<void> Function(PapilioRouterDelegate<T> delegate, T configuration)?)
Called by the Router when the Router.routeInformationProvider reports that a new route has been pushed to the application by the operating system. See RouterDelegate for more information.
getter/setter pair
parseRouteInformation Future<T> Function(RouteInformation routeInformation)
Get the route configuration from the route information
final
restoreRouteInformation RouteInformation? Function(T configuration)
Get the route information from the route configuration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited