PathMatcher.regex constructor

PathMatcher.regex(
  1. String pattern, {
  2. bool caseSensitive = true,
  3. bool unicode = false,
  4. bool dotAll = false,
})

Creates a Regex-based PathMatcher from a regular expression pattern.

Implementation

factory PathMatcher.regex(
  String pattern, {
  bool caseSensitive = true,
  bool unicode = false,
  bool dotAll = false,
}) {
  return RegexPathMatcher(
    RegExp(
      pattern,
      caseSensitive: caseSensitive,
      unicode: unicode,
      dotAll: dotAll,
    ),
  );
}