AFRichTextBuilder class

Used for building up RichText widgets in parts.

Constructors

AFRichTextBuilder({required AFFundamentalThemeState theme, AFWidgetID? wid, TextStyle? styleBold, TextStyle? styleNormal, TextStyle? styleTapable, TextStyle? styleMuted})

Properties

hashCode int
The hash code for this object.
no setterinherited
isAtMark bool
no setter
isEmpty bool
no setter
isNotEmpty bool
no setter
markPoint int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spans List<InlineSpan>
final
styleBold TextStyle?
final
styleMuted TextStyle?
final
styleNormal TextStyle?
final
styleTapable TextStyle?
final
theme AFFundamentalThemeState
final
wid AFWidgetID?
final

Methods

insertNormal(int idx, Object idOrText, {GestureRecognizer? onGesture}) → void
mark() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRichText({TextAlign textAlign = TextAlign.start, TextOverflow overflow = TextOverflow.clip, int? maxLines = 10, bool softWrap = true}) Widget
Creates a rich text widget with the specified content.
toSimpleText() String
toString() String
A string representation of this object.
inherited
write(String text) → void
writeBold(Object idOrText, {GestureRecognizer? onGesture}) → void
writeIfAtMark(Object idOrText, {TextStyle? style, GestureRecognizer? onGesture}) → void
writeIfNonEmpty(Object idOrText, {TextStyle? style, GestureRecognizer? onGesture}) → void
writeIfPastMark(Object idOrText, {TextStyle? style, GestureRecognizer? onGesture}) → void
writeMuted(Object idOrText, {GestureRecognizer? onGesture}) → void
writeNormal(Object idOrText) → void
writeStyled(Object idOrText, TextStyle? style, {GestureRecognizer? onGesture}) → void
writeTapable(Object idOrText, GestureRecognizer? recognizer) → void
writeWidget(Widget widget) → void

Operators

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