matches method

bool matches(
  1. String name
)

true if the name matches the pattern

Implementation

bool matches(String name) {
  try {
    final runner = _GlobMatchRunner(this, contextPathSplit(posix, name));
    return runner.matches();
  } catch (_) {
    return false;
  }
}