cast<RR, PP extends RouteParams> method

  1. @override
AppRoute<RR, PP> cast<RR, PP extends RouteParams>()

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);
}