TextFormatSpan class

Represents an inline text span with formatting attributes.

Constructors

TextFormatSpan({required String text, bool isBold = false, bool isItalic = false, bool isUnderline = false, bool isStrikethrough = false, String? fontFamily, double? fontSize, Color? foregroundColor, Color? backgroundColor, String? linkUrl})
TextFormatSpan.plain(String text)
factory

Properties

backgroundColor ↔ Color?
getter/setter pair
fontFamily ↔ String?
getter/setter pair
fontSize ↔ double?
getter/setter pair
foregroundColor ↔ Color?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isBold ↔ bool
getter/setter pair
isItalic ↔ bool
getter/setter pair
isStrikethrough ↔ bool
getter/setter pair
isUnderline ↔ bool
getter/setter pair
linkUrl ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text ↔ String
getter/setter pair

Methods

copyWith({String? text, bool? isBold, bool? isItalic, bool? isUnderline, bool? isStrikethrough, String? fontFamily, double? fontSize, Color? foregroundColor, Color? backgroundColor, String? linkUrl, bool clearFontFamily = false, bool clearFontSize = false, bool clearForegroundColor = false, bool clearBackgroundColor = false, bool clearLinkUrl = false}) → TextFormatSpan
hasSameFormat(TextFormatSpan other) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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