PinyinMarkText class

Inheritance

Constructors

PinyinMarkText({required String text, String? pinyin, TextStyle? textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14), Color? markTextColor = const Color(0xe6333333), double? markTextSize = 12, double? lineSpacing = 2, Iterable<int>? customWordIndex, OnCustomWordCall? customWordCall, int? index})

Properties

customWordCall OnCustomWordCall?
自定义字回调
final
customWordIndex Iterable<int>?
自定义字索引
final
hashCode int
The hash code for this object.
no setterinherited
index int?
当前文本索引
final
isMarkPinyin bool
是否标注拼音
getter/setter pairinherited
lineSpacing double?
行间距
final
markTextColor Color?
标记文本颜色
final
markTextSize double?
标记文本大小
final
offset int?
no setterinherited
pinyin String?
拼音
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startFlag String?
no setterinherited
text String
文本
final
textStyle TextStyle?
文本样式
final
textType SpecialTextType
no setterinherited

Methods

appendContent(String? value) → void
append text of SpecialText
inherited
finishText() InlineSpan
finish SpecialText
override
getContent() String
get content of SpecialText
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setOffset(int offset) → void
inherited
setStartFlag(String startFlag) → void
inherited
setTextType(SpecialTextType textType) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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