PapilioRoutingConfiguration<T> constructor

PapilioRoutingConfiguration<T>({
  1. required void buildRoutes(
    1. PapilioRouterDelegateBuilder<T> delegateBuilder
    ),
  2. required T currentRouteConfiguration(
    1. Page currentPage
    ),
  3. required Future<T> parseRouteInformation(
    1. RouteInformation routeInformation
    ),
  4. required RouteInformation? restoreRouteInformation(
    1. T configuration
    ),
  5. required void onInit(
    1. PapilioRouterDelegate<T> delegate,
    2. IocContainer container
    ),
  6. Future<void> onSetNewRoutePath(
    1. PapilioRouterDelegate<T> delegate,
    2. T configuration
    )?,
})

Constructs a PapilioRoutingConfiguration. Use the extension methods for this. You shoudln't need to construct this directly.

Implementation

PapilioRoutingConfiguration({
  required this.buildRoutes,
  required this.currentRouteConfiguration,
  required this.parseRouteInformation,
  required this.restoreRouteInformation,
  required this.onInit,
  this.onSetNewRoutePath,
});