isWildcard method
Returns if this value matches a wildcard route.
Implementation
bool isWildcard() {
final value = endsWith('.dart')
? path.basenameWithoutExtension(this)
: path.basename(this);
return RegExp(r'\[\.\.\.(.*?)\]').hasMatch(value);
}