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

Constructors

PatternMatcher(String pattern)
Creates a PatternMatcher with some regular expression pattern.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
pattern String
The regular expression string to specify the rule for parsing.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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