getLocation method

String getLocation(
  1. AppRoute route
)

Implementation

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