InfoSpecialTextSpanBuilder constructor
InfoSpecialTextSpanBuilder({
- required String content,
- Map<
String, dynamic> ? extrasMap, - Color? atFontColor,
- double? atFontSize,
- double? emojiSize,
- Color? linkFontColor,
- double? linkFontSize,
- TagArguments? startTagItems,
- TextStyle? colorTagStyle,
- bool? isMarkPinyin,
- Map<
String, dynamic> ? wordsPinyinMap, - TextStyle textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14),
- dynamic pinYinParsingCall()?,
- bool enablePinYinCheck = true,
- bool? enableReferenceMark,
- Color markTextColor = const Color(0xe6333333),
- double markTextSize = 12,
- List<
Map< indexRangeStyle = const [],List< >int> , TextSpanStyle> - double lineSpacing = 2,
- Iterable<
int> ? customWordIndex, - OnCustomWordCall? customWordCall,
- List<
String> ? referenceMarkList, - OnReferenceWordCall? referenceWordCall,
Implementation
InfoSpecialTextSpanBuilder({
required this.content,
this.extrasMap,
this.atFontColor,
this.atFontSize,
this.emojiSize,
this.linkFontColor,
this.linkFontSize,
this.startTagItems,
this.colorTagStyle,
this.isMarkPinyin,
this.wordsPinyinMap,
this.textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14),
this.pinYinParsingCall,
this.enablePinYinCheck = true,
this.enableReferenceMark,
this.markTextColor = const Color(0xe6333333),
this.markTextSize = 12,
this.indexRangeStyle = const [],
this.lineSpacing = 2,
this.customWordIndex,
this.customWordCall,
this.referenceMarkList,
this.referenceWordCall,
}) {
if (isMarkPinyin ?? false) {
hasPinYin = true;
}
super.spanStyleMap = _textSpanStyle();
super.lineSpacingSize = lineSpacing;
super.customIndexList = customWordIndex;
super.customCall = customWordCall;
_referenceStyle();
}