PermissionPatternMatcher class

Utility class for matching permission patterns against values.

Supports four pattern types:

  • Exact: "foo" matches only "foo"
  • Prefix (wildcard): "src/*" matches "src/main.dart", etc.
  • Glob: "*.dart", "src/**/*.ts" — standard glob matching
  • Regex: "regex:^[a-z]+$" — explicit regex prefix

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isValidRegex(String pattern) bool
Check if a pattern is a valid regex when prefixed with "regex:".
match(String pattern, String value) bool
Match a pattern against a value.
patternType(String pattern) String
Return the type of a pattern as a human-readable string.