matches method

bool matches(
  1. String method,
  2. String path
)

Implementation

bool matches(String method, String path) {
  final normalizedPath = _normalizePath(path);
  return this.method == method && matcher.hasMatch(normalizedPath);
}