PathMatcher class abstract
An abstract class for matching paths against a pattern.
- Implementers
Constructors
- PathMatcher.callback(bool callback(String path))
-
Creates a PathMatcher that uses a callback function to match paths.
factory
- PathMatcher.glob(String pattern, {Context? context, bool recursive = false, bool? caseSensitive})
-
Creates a Glob-based PathMatcher from a glob pattern.
factory
- PathMatcher.regex(String pattern, {bool caseSensitive = true, bool unicode = false, bool dotAll = false})
-
Creates a Regex-based PathMatcher from a regular expression pattern.
factory
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
-
matches(
String path) → bool -
Checks if the given
path
matches the pattern. -
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