create<R> method
UriTemplateAppPageRoute<R, RouteParams>
create<R>(
- MSchemaRef ref,
- WidgetHandler<
R, RouteParams> handler, { - String? name,
- ToRouteTitle<
RouteParams> ? toRouteTitle,
Creates an AppPageRoute
definition whose arguments are Map<String, dynamic>
Implementation
UriTemplateAppPageRoute<R, RouteParams> create<R>(
MSchemaRef ref,
WidgetHandler<R, RouteParams> handler, {
String? name,
ToRouteTitle<RouteParams>? toRouteTitle,
}) {
return page<R, RouteParams>(
ref.toPath("/create"),
handler,
paramConverter: defaultConverter,
transitionType: TransitionType.native,
name: name,
toRouteTitle: toRouteTitle,
);
}