patternMatcher function

PathMatcher patternMatcher(
  1. Pattern pattern
)

Return a PathMatcher that uses the given pattern on the path of the actor.

Implementation

PathMatcher patternMatcher(Pattern pattern) {
  return (Uri path) {
    final matches = pattern.allMatches(path.path);
    return matches.isNotEmpty;
  };
}