TextStyle class Null safety

Annotations

Constructors

TextStyle({bool inherit = true, PdfColor? color, Font? font, Font? fontNormal, Font? fontBold, Font? fontItalic, Font? fontBoldItalic, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, double? lineSpacing, double? height, BoxDecoration? background, TextDecoration? decoration, PdfColor? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, PdfTextRenderingMode? renderingMode})
const
TextStyle.defaultStyle()
factory

Properties

background BoxDecoration?
final
color PdfColor?
final
decoration TextDecoration?
final
decorationColor PdfColor?
final
decorationStyle TextDecorationStyle?
final
decorationThickness double?
final
font Font?
read-only
fontBold Font?
final
fontBoldItalic Font?
final
fontItalic Font?
final
fontNormal Font?
final
fontSize double?
final
fontStyle FontStyle?
The typeface variant to use when drawing the letters (e.g., italics).
final
fontWeight FontWeight?
The typeface thickness to use when painting the text (e.g., bold).
final
hashCode int
The hash code for this object. [...]
read-only, inherited
height double?
final
inherit bool
final
letterSpacing double?
final
lineSpacing double?
final
renderingMode PdfTextRenderingMode?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
wordSpacing double?
final

Methods

apply({PdfColor? color, Font? font, Font? fontNormal, Font? fontBold, Font? fontItalic, Font? fontBoldItalic, double fontSizeFactor = 1.0, double fontSizeDelta = 0.0, double letterSpacingFactor = 1.0, double letterSpacingDelta = 0.0, double wordSpacingFactor = 1.0, double wordSpacingDelta = 0.0, double heightFactor = 1.0, double heightDelta = 0.0, TextDecoration decoration = TextDecoration.none}) TextStyle
Creates a copy of this text style replacing or altering the specified properties.
copyWith({PdfColor? color, Font? font, Font? fontNormal, Font? fontBold, Font? fontItalic, Font? fontBoldItalic, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, double? lineSpacing, double? height, BoxDecoration? background, TextDecoration? decoration, PdfColor? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, PdfTextRenderingMode? renderingMode}) TextStyle
merge(TextStyle? other) TextStyle
Returns a new text style that is a combination of this style and the given other style.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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