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 ExternalAppRoute<RR, PP>._(this.name);
}