RichTextController constructor

RichTextController({
  1. String? text,
  2. Map<RegExp, TextStyle>? patternMatchMap,
  3. Map<String, TextStyle>? stringMatchMap,
  4. required dynamic onMatch(
    1. List<String> match
    ),
  5. dynamic onMatchIndex(
    1. List<Map<String, List<int>>>
    )?,
  6. bool? deleteOnBack = false,
  7. bool regExpCaseSensitive = true,
  8. bool regExpDotAll = false,
  9. bool regExpMultiLine = false,
  10. bool regExpUnicode = false,
})

Implementation

RichTextController(
    {String? text,
    this.patternMatchMap,
    this.stringMatchMap,
    required this.onMatch,
    this.onMatchIndex,
    this.deleteOnBack = false,
    this.regExpCaseSensitive = true,
    this.regExpDotAll = false,
    this.regExpMultiLine = false,
    this.regExpUnicode = false})
    : assert((patternMatchMap != null && stringMatchMap == null) ||
          (patternMatchMap == null && stringMatchMap != null)),
      super(text: text);