pattern static method
pattern matches value by utilizing RegExp through building it via
String typed pattern, multiLine
and caseSensitive
.
It is mainly used as a shorthand for matching via RegExp.
Implementation
static RegExpMatcher pattern(
String pattern, {
bool? multiLine,
bool? caseSensitive,
}) =>
RegExpMatcher(
pattern: pattern,
multiLine: multiLine ?? false,
caseSensitive: caseSensitive ?? false,
);