InfoSpecialTextSpanBuilder class
Constructors
-
InfoSpecialTextSpanBuilder({required String content, 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})
-
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