RouteStringX extension

Extension on String with helper methods regarding Dart Frog routes.

on

Methods

isWildcard() bool

Available on String, provided by the RouteStringX extension

Returns if this value matches a wildcard route.
toAlias() String

Available on String, provided by the RouteStringX extension

Parses the stirng into a route alias.
toParams() List<String>

Available on String, provided by the RouteStringX extension

Parses the string into a list of route parameters.
toRoute() String

Available on String, provided by the RouteStringX extension

Parses the string into a route path.