LinkRichModel constructor
LinkRichModel(
- String text, {
- TextStyle? style,
- TextStyle? linkStyle,
- List<
SpecialStr> ? specialStrs, - List<
RegExpStr> ? regExpStrs, - 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();
}