pattern static method

RegExpMatcher pattern(
  1. String pattern, {
  2. bool? multiLine,
  3. bool? caseSensitive,
})

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,
    );