TextElement constructor

const TextElement(
  1. String text, {
  2. List<String?> groups = const [],
  3. Type matcherType = TextMatcher,
  4. int? matcherIndex,
  5. int offset = 0,
})

Creates a TextElement that holds the information of a parsed element.

Implementation

const TextElement(
  this.text, {
  this.groups = const [],
  this.matcherType = TextMatcher,
  this.matcherIndex,
  this.offset = 0,
});