matches method

bool matches(
  1. String path
)

检查路径是否匹配

Implementation

bool matches(String path) {
  return pattern.allMatches(path).isNotEmpty;
}