TextStyle class
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
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