CustomTextSpanData class

A data-class that holds text and style properties. It can be converted into a regular TextSpan using a provided base style.

Constructors

CustomTextSpanData(String data, {double fontSize = 12.0, double adjustSize = 0.0, Color? color, Color? darkColor, bool invertColor = false, String? fontFamily, FontWeight fontWeight = FontWeight.normal, FontStyle fontStyle = FontStyle.normal, TextDecoration textDecoration = TextDecoration.none, Color decorationColor = Colors.black, List<Shadow> shadows = const [], double? height, double? letterSpacing, double? wordSpacing, TextDecorationStyle? decorationStyle, TextStyle? style, Color? backgroundColor, List<String>? fontFamilyFallback, List<FontFeature>? fontFeatures, List<FontVariation>? fontVariations, TextLeadingDistribution? leadingDistribution, String? package, TextBaseline? textBaseline, double? decorationThickness, String? debugLabel, TapGestureRecognizer? recognizer, List<CustomTextSpanData>? children, MouseCursor? mouseCursor, void onEnter(PointerEnterEvent)?, void onExit(PointerExitEvent)?, String? semanticsLabel, bool? spellOut, Locale? locale, TextOverflow? overflow})

Properties

adjustSize → double
final
backgroundColor → Color?
final
children → List<CustomTextSpanData>?
final
color → Color?
final
darkColor → Color?
final
data → String
final
debugLabel → String?
final
decorationColor → Color
final
decorationStyle → TextDecorationStyle?
final
decorationThickness → double?
final
fontFamily → String?
final
fontFamilyFallback → List<String>?
final
fontFeatures → List<FontFeature>?
final
fontSize → double
final
fontStyle → FontStyle
final
fontVariations → List<FontVariation>?
final
fontWeight → FontWeight
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
invertColor → bool
final
leadingDistribution → TextLeadingDistribution?
final
letterSpacing → double?
final
locale → Locale?
final
mouseCursor → MouseCursor?
final
onEnter → void Function(PointerEnterEvent)?
final
onExit → void Function(PointerExitEvent)?
final
overflow → TextOverflow?
final
package → String?
final
recognizer → TapGestureRecognizer?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticsLabel → String?
final
shadows → List<Shadow>
final
spellOut → bool?
final
style → TextStyle?
final
textBaseline → TextBaseline?
final
textDecoration → TextDecoration
final
wordSpacing → double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toTextSpan(TextStyle baseStyle) → TextSpan
Converts this data object into a TextSpan. The provided baseStyle (typically obtained via DefaultTextStyle) is used as the foundation if no style is explicitly set.

Operators

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