match method

bool match(
  1. String path
)

Implementation

bool match(String path) {
  final parameters = <String>[];
  final tokens = parse(path, parameters: parameters);
  final regExp = tokensToRegExp(tokens);
  if (regExp.hasMatch(this.path)) {
    return true;
  }
  return false;
}