RouteStringX extension

Extension on String with helper methods regarding Dart Frog routes.

on

Methods

isWildcard() bool
Returns if this value matches a wildcard route.
toAlias() String
Parses the stirng into a route alias.
toParams() List<String>
Parses the string into a list of route parameters.
toRoute() String
Parses the string into a route path.