function<R> method
AppRoute<R, RouteParams>
function<R>(
- String routePath,
- CompletableHandler<
R, RouteParams> handler, { - String? name,
- ToRouteTitle? toRouteTitle,
Creates an AppPageRoute definition whose arguments are Map<String, dynamic>
Implementation
AppRoute<R, RouteParams> function<R>(
String routePath,
CompletableHandler<R, RouteParams> handler, {
String? name,
ToRouteTitle? toRouteTitle,
}) {
final route = UriTemplateCompletableAppRoute<R, RouteParams>(
UriTemplate(routePath),
handler,
(_) => RouteParams.of(_),
name: name,
toRouteTitle: toRouteTitle,
);
register(route);
return route;
}