toRoute method
Parses the string into a route path.
Implementation
String toRoute() {
if (isWildcard()) return '/';
return replaceAll('[', '<').replaceAll(']', '>').replaceAll(r'\', '/');
}
Parses the string into a route path.
String toRoute() {
if (isWildcard()) return '/';
return replaceAll('[', '<').replaceAll(']', '>').replaceAll(r'\', '/');
}