userPage<U, R> method Null safety

UriTemplateAppPageRoute<R, IdArgs<U>> userPage<U, R>(
  1. String routePath,
  2. WidgetHandler<R, IdArgs<U>> handler,
  3. {String? name,
  4. ToRouteTitle<IdArgs<U>>? toRouteTitle,
  5. 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;
}