ReferenceMarkText class

Inheritance

Constructors

ReferenceMarkText({required String text, TextStyle? textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14), Color? markTextColor = const Color(0xe6333333), double? markTextSize = 12, double? lineSpacing = 2, OnReferenceWordCall? referenceWordCall, int? index, required String markText})

Properties

hashCode int
The hash code for this object.
no setterinherited
index int?
当前文本索引
final
isMarkPinyin bool
是否标注拼音
getter/setter pairinherited
lineSpacing double?
行间距
final
markText String
标记文本
final
markTextColor Color?
标记文本颜色
final
markTextSize double?
标记文本大小
final
offset int?
no setterinherited
referenceWordCall OnReferenceWordCall?
引用文本回调
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