RichTextSpan constructor
const
RichTextSpan({
- Key? key,
- String text = '',
- double fontSize = 13,
- Color fontColor = const Color(0xe6333333),
- FontWeight fontWeight = FontWeight.normal,
- String ellipsis = "",
- int maxLines = 4,
- double lineHeight = 1.2,
- double letterSpacing = 0.5,
- double lineSpacing = 2,
- double emojiSize = 20.0,
- Color atFontColor = Colors.blue,
- double atFontSize = 16.0,
- Color linkFontColor = Colors.blue,
- double linkFontSize = 16.0,
- Map<
String, dynamic> ? extrasMap, - OnTagCall? onTagCall,
- TagArguments? startTagItems,
- String? moreText,
- Color moreTextColor = Colors.blue,
- OnMoreTagCall? onMoreTagCall,
- TextStyle? colorTagStyle,
- bool isMarkPinyin = false,
- Map<
String, dynamic> wordsPinyinMap = const {}, - dynamic buildCall(
- RichTextSpanModel model
- dynamic pinYinParsingCall()?,
- bool enablePinYinCheck = false,
- Color markTextColor = const Color(0xe6333333),
- double markTextSize = 12,
- List<
Map< indexRangeStyle = const [],List< >int> , TextSpanStyle> - TextAlign? textAlign,
- Iterable<
int> ? customWordIndex, - OnCustomWordCall? customWordCall,
- bool selectionEnabled = false,
- Color? selectionToolBarColor = const Color(0xcc3B372C),
- List<
TextSelectionToolbarItemData> ? selectionToolBarItems, - double? selectionToolBarHeight,
- List<
String> ? referenceMarkList, - OnReferenceWordCall? referenceWordCall,
Implementation
const RichTextSpan({
Key? key,
this.text = '',
this.fontSize = 13,
this.fontColor = const Color(0xe6333333),
this.fontWeight = FontWeight.normal,
this.ellipsis = "",
this.maxLines = 4,
this.lineHeight = 1.2,
this.letterSpacing = 0.5,
this.lineSpacing = 2,
this.emojiSize = 20.0,
this.atFontColor = Colors.blue,
this.atFontSize = 16.0,
this.linkFontColor = Colors.blue,
this.linkFontSize = 16.0,
this.extrasMap,
this.onTagCall,
this.startTagItems,
this.moreText,
this.moreTextColor = Colors.blue,
this.onMoreTagCall,
this.colorTagStyle,
this.isMarkPinyin = false,
this.wordsPinyinMap = const {},
this.buildCall,
this.pinYinParsingCall,
this.enablePinYinCheck = false,
this.markTextColor = const Color(0xe6333333),
this.markTextSize = 12,
this.indexRangeStyle = const [],
this.textAlign,
this.customWordIndex,
this.customWordCall,
this.selectionEnabled = false,
this.selectionToolBarColor = const Color(0xcc3B372C),
this.selectionToolBarItems,
this.selectionToolBarHeight,
this.referenceMarkList,
this.referenceWordCall,
}) : super(key: key);