isWildcard static method
checks if given path
is a :wildcard:
Implementation
static bool isWildcard(String path) {
final routerUrl = cleanUrl(path);
final routerParts = routerUrl.split("/");
for (final routerPart in routerParts) {
if (routerPart.length > 2 &&
routerPart[0] == ':' &&
routerPart[routerPart.length - 1] == ':') {
return true;
}
}
return false;
}