PatternMatcher class
A variant of TextMatcher that takes a regular expression pattern as a parameter.
This is convenient when you want to prepare a matcher with some pattern without writing a new matcher class extending TextMatcher.
const boldMatcher = PatternMatcher(r'\*\*(.+?)\*\*');
- Inheritance
-
- Object
- TextMatcher
- PatternMatcher
Constructors
- PatternMatcher.new(String pattern)
-
Creates a PatternMatcher with some regular expression pattern.
const
Properties
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