userPage<U, R> method
UriTemplateAppPageRoute<R, IdArgs<U>>
userPage<
U, R>( - String routePath,
- WidgetHandler<R, IdArgs<U>> handler, {
- String? name,
- ToRouteTitle<IdArgs<U>>? toRouteTitle,
- TransitionType? transitionType,
})
Implementation
UriTemplateAppPageRoute<R, IdArgs<U>> userPage<U, R>(String routePath, WidgetHandler<R, IdArgs<U>> handler,
{String? name, ToRouteTitle<IdArgs<U>>? toRouteTitle, TransitionType? transitionType}) {
final route = UriTemplateAppPageRoute<R, IdArgs<U>>(
UriTemplate(routePath),
handler,
(dyn) => IdArgs.of(dyn),
name: name,
toRouteTitle: toRouteTitle,
transitionType: transitionType,
);
this.register(
route,
);
return route;
}