RegexFilter<CTX extends Context> class
Filter that matches text using regular expressions.
Constructors
- RegexFilter(RegExp pattern)
-
Creates a filter that matches text using regex.
const
- RegexFilter.fromString(String pattern, {bool caseSensitive = true, bool multiLine = false, bool dotAll = false})
-
Creates a filter with a string pattern.
factory
Properties
Methods
-
and(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical AND.
inherited
-
matches(
CTX ctx) → bool -
Tests if this filter matches the given context.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
) → Filter< CTX> -
Creates a filter that matches the opposite of this filter.
inherited
-
or(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical OR.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical AND.
inherited
-
operator +(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical OR.
inherited
-
operator -(
Filter< CTX> other) → Filter<CTX> -
Creates a filter that matches
thisANDnot the other.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → Filter< CTX> -
Creates a filter that matches the opposite of this filter.
inherited