String getLocation(AppRoute route) { final routes = getAppRoutes(route); return routes.definitions[route.runtimeType]!.path.replaceAllMapped(RegExp(r'<(\w+)>'), (m) => route[m[1]!]); }