PatternMatcher class Null safety

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-only, inherited
pattern String
The regular expression string to specify the rule for parsing.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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