DrawableTextStyle class

A wrapper class for Flutter's TextStyle class.

Provides non-opaque access to text styling properties.

Annotations

Constructors

DrawableTextStyle({TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, FontWeight? fontWeight, String? fontFamily, double? fontSize, FontStyle? fontStyle, DrawablePaint? foreground, DrawablePaint? background, double? letterSpacing, double? wordSpacing, double? height, Locale? locale, TextBaseline? textBaseline, DrawableTextAnchorPosition? anchor})
Creates a new DrawableTextStyle.
const

Properties

anchor DrawableTextAnchorPosition?
The DrawableTextAnchorPosition to use when drawing this text.
final
background DrawablePaint?
The background to use when drawing this text.
final
decoration TextDecoration?
The TextDecoration to draw with this text.
final
decorationColor Color?
The color to use when drawing the decoration.
final
decorationStyle TextDecorationStyle?
The TextDecorationStyle of the decoration.
final
fontFamily String?
The font family to use when drawing this text.
final
fontSize double?
The font size to use when drawing this text.
final
fontStyle FontStyle?
The style of the font.
final
fontWeight FontWeight?
The weight of the font.
final
foreground DrawablePaint?
The foreground to use when drawing this text.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the text.
final
letterSpacing double?
The letter spacing to use when drawing this text.
final
locale Locale?
The Locale to use when drawing this text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textBaseline TextBaseline?
The TextBaseline to use when drawing this text.
final
wordSpacing double?
The word spacing to use when drawing this text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFlutterTextStyle({DrawablePaint? foregroundOverride}) TextStyle
Creates a Flutter TextStyle, overriding the foreground if specified.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

merge(DrawableTextStyle? a, DrawableTextStyle? b) DrawableTextStyle?
Merges two drawable text styles together, prefering set properties from b.