matches method

bool matches(
  1. String name
)

Implementation

bool matches(String name) {
  return name == path || path == '*' || path.startsWith(':');
}