cast<RR, PP extends RouteParams> method
Casts this route to the expected type. If the cast is invalid, you may have errors when running the functions because parameters are not cast correctly
Implementation
@override
AppRoute<RR, PP> cast<RR, PP extends RouteParams>() {
return AppPageRoute<RR, PP>(
this.route,
this._handler?.cast<RR, PP>(),
this.paramConverter?.cast<PP>(),
name: name,
transitionType: transitionType,
toRouteUri: toRouteUri,
toRouteTitle: _toRouteTitle?.cast<PP>(),
);
}