FRouter constructor
FRouter({
- RouterFactory routeFactory = const DefaultRouterFactory(),
- AppRoute<
dynamic, RouteParams> ? notFoundRoute, - ParameterExtractorType parameterMode = ParameterExtractorType.restTemplate,
Implementation
FRouter(
{NavigatorOf? navigatorOf,
this.routeFactory = const DefaultRouterFactory(),
this.notFoundRoute,
ParameterExtractorType parameterMode =
ParameterExtractorType.restTemplate})
: _routeTree = RouteTree(parameterMode),
navigatorOf = navigatorOf ??
((context, rootNavigator) {
return Navigator.of(context, rootNavigator: rootNavigator);
}) {
if (notFoundRoute != null) {
this.register(notFoundRoute!);
}
}