modal<R, P extends RouteParams> method Null safety

UriTemplateAppPageRoute<R, P> modal<R, P extends RouteParams>(
  1. String routePath,
  2. WidgetHandler<R, P> handler,
  3. {ParameterConverter<P>? paramConverter,
  4. String? name,
  5. ToRouteTitle<P>? toRouteTitle}
)

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

Implementation

UriTemplateAppPageRoute<R, P> modal<R, P extends RouteParams>(
  String routePath,
  WidgetHandler<R, P> handler, {
  ParameterConverter<P>? paramConverter,
  String? name,
  ToRouteTitle<P>? toRouteTitle,
}) {
  return page<R, P>(
    routePath,
    handler,
    paramConverter: paramConverter,
    transitionType: TransitionType.nativeModal,
    name: name,
    toRouteTitle: toRouteTitle,
  );
}