matches method

bool matches(
  1. String path
)

Whether the parser matches the file name.

Implementation

bool matches(String path) => pattern.allMatches(path).isNotEmpty;