create<R> method

UriTemplateAppPageRoute<R, RouteParams> create<R>(
  1. MSchemaRef ref,
  2. WidgetHandler<R, RouteParams> handler, {
  3. String? name,
  4. 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,
  );
}