PatternMatcher constructor
const
PatternMatcher(
- String pattern
Creates a PatternMatcher with some regular expression pattern.
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'\*\*(.+)\*\*');
Implementation
const PatternMatcher(super.pattern);