InfoSpecialTextSpanBuilder constructor

InfoSpecialTextSpanBuilder({
  1. required String content,
  2. Map<String, dynamic>? extrasMap,
  3. Color? atFontColor,
  4. double? atFontSize,
  5. double? emojiSize,
  6. Color? linkFontColor,
  7. double? linkFontSize,
  8. TagArguments? startTagItems,
  9. TextStyle? colorTagStyle,
  10. bool? isMarkPinyin,
  11. Map<String, dynamic>? wordsPinyinMap,
  12. TextStyle textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14),
  13. dynamic pinYinParsingCall()?,
  14. bool enablePinYinCheck = true,
  15. bool? enableReferenceMark,
  16. Color markTextColor = const Color(0xe6333333),
  17. double markTextSize = 12,
  18. List<Map<List<int>, TextSpanStyle>> indexRangeStyle = const [],
  19. double lineSpacing = 2,
  20. Iterable<int>? customWordIndex,
  21. OnCustomWordCall? customWordCall,
  22. List<String>? referenceMarkList,
  23. 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();
}