TextStyle class

Annotations
  • @immutable

Constructors

TextStyle({bool inherit = true, PdfColor? color, Font? font, Font? fontNormal, Font? fontBold, Font? fontItalic, Font? fontBoldItalic, List<Font> fontFallback = const [], 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?
no setter
fontBold → Font?
final
fontBoldItalic → Font?
final
fontFallback → List<Font>
The ordered list of font to fall back on when a glyph cannot be found in a higher priority font.
final
fontItalic → Font?
final
fontNormal → Font?
final
fontSize → double?
font height, in pdf unit
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.
no setterinherited
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.
no setterinherited
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, List<Font>? fontFallback, 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 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