TextParser constructor

TextParser({
  1. required List<TextMatcher> matchers,
  2. bool multiLine = false,
  3. bool caseSensitive = true,
  4. bool unicode = false,
  5. bool dotAll = false,
})

Creates a TextParser that parses text according to specified matchers.

matchers is a list of TextMatchers to be used for parsing.

If multiLine is enabled, then ^ and $ will match the beginning and end of a line, in addition to matching beginning and end of input, respectively.

If caseSensitive is disabled, then case is ignored.

If unicode is enabled, then the pattern is treated as a Unicode pattern as described by the ECMAScript standard.

If dotAll is enabled, then the . pattern will match all characters, including line terminators.

Implementation

TextParser({
  required List<TextMatcher> matchers,
  bool multiLine = false,
  bool caseSensitive = true,
  bool unicode = false,
  bool dotAll = false,
}) : _parser = Parser(
        matchers: matchers,
        multiLine: multiLine,
        caseSensitive: caseSensitive,
        unicode: unicode,
        dotAll: dotAll,
      );