InfoSpecialTextSpanBuilder class

Inheritance

Constructors

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<List<int>, TextSpanStyle>> indexRangeStyle = const [], double lineSpacing = 2, Iterable<int>? customWordIndex, OnCustomWordCall? customWordCall, List<String>? referenceMarkList, OnReferenceWordCall? referenceWordCall})

Properties

atFontColor Color?
final
atFontSize double?
final
colorTagStyle TextStyle?
final
content String
final
customCall OnCustomWordCall?
getter/setter pairinherited
customIndexList Iterable<int>?
getter/setter pairinherited
customWordCall OnCustomWordCall?
自定义字回调
final
customWordIndex Iterable<int>?
自定义字索引
final
emojiSize double?
final
enablePinYinCheck bool
final
enableReferenceMark bool?
final
extrasMap Map<String, dynamic>?
扩展map(用于携带自定义数据)
final
hashCode int
The hash code for this object.
no setterinherited
hasPinYin bool
getter/setter pair
indexRangeStyle List<Map<List<int>, TextSpanStyle>>
final
isMarkPinyin bool?
final
lineSpacing double
行间距
final
lineSpacingSize double
getter/setter pairinherited
linkFontColor Color?
final
linkFontSize double?
final
markTextColor Color
标记文本颜色
final
markTextSize double
标记文本大小
final
pinYinParsingCall → dynamic Function()?
解析拼音回调
final
referenceMap Map<int, String>
getter/setter pairinherited
referenceMarkList List<String>?
引用标记列表,在文中显注标记该集合的数据;
final
referenceWordCall OnReferenceWordCall?
引用文本回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanStyleMap Map<int, TextSpanStyle>
getter/setter pairinherited
startTagItems TagArguments?
final
textStyle TextStyle
final
wordsPinyinMap Map<String, dynamic>?
final

Methods

addRefIndex(int start, int count, String text) → void
build(String data, {TextStyle? textStyle, SpecialTextGestureTapCallback? onTap}) TextSpan
inherited
createSpecialText(String flag, {TextStyle? textStyle, SpecialTextGestureTapCallback? onTap, required int index}) → SpecialText?
findAtText(String? data, int? index, TextStyle? textStyle, SpecialTextGestureTapCallback? onTap) EySpecialText?
findColorText(String? data, String? textStack, int? index, TextStyle? textStyle, SpecialTextGestureTapCallback? onTap) EySpecialText?
findEmojiText(String? data, String? textStack, int? index, TextStyle? textStyle) EySpecialText?
findLinkText(String? data, String? textStack, int? index, TextStyle? textStyle, SpecialTextGestureTapCallback? tapCallback) EySpecialText?
findSpecialText({String? data, String? textStack, int? index, TextStyle? textStyle, SpecialTextGestureTapCallback? tapCallback}) EySpecialText?
找到符合条件的文本
override
findStartSpecialText(SpecialTextGestureTapCallback? tapCallback) EySpecialText?
override
getChildTextSpan(List<InlineSpan> inlineList, String elementText, TextStyle? textStyle, SpecialTextGestureTapCallback? onTap, int count) → void
inherited
isStart(String value, String startFlag) bool
start with SpecialText
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinyinMark(String? data, String? textStack, int? index, SpecialTextGestureTapCallback? onTap) EySpecialText?
pinyinMarkText(String? textStack, int? index, String? textPinyin, TextSpanStyle? spanStyle) EySpecialText?
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited