view<R> method

UriTemplateAppPageRoute<R, KeyArgs> view<R>(
  1. MSchemaRef ref,
  2. WidgetHandler<R, KeyArgs> handler, {
  3. String? name,
  4. ToRouteTitle<KeyArgs>? toRouteTitle,
})

Creates an AppPageRoute definition whose arguments are Map<String, dynamic>

Implementation

UriTemplateAppPageRoute<R, KeyArgs> view<R>(
  MSchemaRef ref,
  WidgetHandler<R, KeyArgs> handler, {
  String? name,
  ToRouteTitle<KeyArgs>? toRouteTitle,
}) {
  return page<R, KeyArgs>(
    ref.toPath("/{id}"),
    handler,
    paramConverter: ref.toConverter(),
    transitionType: TransitionType.native,
    name: name,
    toRouteTitle: toRouteTitle,
  );
}