LinkRichModel constructor

LinkRichModel(
  1. String text, {
  2. TextStyle? style,
  3. TextStyle? linkStyle,
  4. List<SpecialStr>? specialStrs,
  5. List<RegExpStr>? regExpStrs,
  6. TapSpecialStrCallback? onTapSpecialStr,
})

Implementation

LinkRichModel(
  this.text, {
  this.style,
  this.linkStyle,
  this.specialStrs,
  this.regExpStrs,
  this.onTapSpecialStr,
}) {
  if (specialStrs is! List) {
    specialStrs = <SpecialStr>[];
  }
  _initLinkSpecial();
  _initRegExpStrs();
  _textSpan = _initTextSpan();
}