RichTextUtil class

富文本构造类 RichTextHelper().appendText().appendWidget().build();

Constructors

RichTextUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spans List<InlineSpan>
getter/setter pair

Methods

appendLine({double? size}) RichTextUtil
appendSpace(double size) RichTextUtil
appendText(String text, {Color color = const Color(0xff222222), double size = 14, bool bold = false, double? height, TextDecoration? decoration, VoidCallback? onTap}) RichTextUtil
appendWidget(Widget child, {PlaceholderAlignment alignment = PlaceholderAlignment.middle}) RichTextUtil
build({TextAlign textAlign = TextAlign.left}) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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