TagText class

Inheritance

Constructors

TagText({List<TagItem>? tagItems, int maxTagCount = 1, double radius = 2, double padding = 2.4, double horSpacing = 5.0, double verSpacing = 5.0, SpecialTextGestureTapCallback? tapCallback, EdgeInsetsGeometry margin = const EdgeInsets.all(0)})

Properties

hashCode int
The hash code for this object.
no setterinherited
horSpacing double
左右标签间距
final
isMarkPinyin bool
是否标注拼音
getter/setter pairinherited
margin EdgeInsetsGeometry
标签外边距
final
maxTagCount int
最大标签数(默认为1)
final
offset int?
no setterinherited
padding double
标签内边距(默认2.4)
final
radius double
标签圆角大小(默认2)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startFlag String?
no setterinherited
tagItems List<TagItem>?
final
tapCallback → SpecialTextGestureTapCallback?
final
textType SpecialTextType
no setterinherited
verSpacing double
上下标签间距
final

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

Constants

tagKey → const String