copyWith method
TextStyle
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,
Implementation
TextStyle 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,
}) {
return TextStyle(
inherit: inherit,
color: color ?? this.color,
font: font ?? this.font,
fontNormal: fontNormal ?? this.fontNormal,
fontBold: fontBold ?? this.fontBold,
fontItalic: fontItalic ?? this.fontItalic,
fontBoldItalic: fontBoldItalic ?? this.fontBoldItalic,
fontFallback: fontFallback ?? this.fontFallback,
fontSize: fontSize ?? this.fontSize,
fontWeight: fontWeight ?? this.fontWeight,
fontStyle: fontStyle ?? this.fontStyle,
letterSpacing: letterSpacing ?? this.letterSpacing,
wordSpacing: wordSpacing ?? this.wordSpacing,
lineSpacing: lineSpacing ?? this.lineSpacing,
height: height ?? this.height,
background: background ?? this.background,
decoration: decoration ?? this.decoration,
decorationColor: decorationColor ?? this.decorationColor,
decorationStyle: decorationStyle ?? this.decorationStyle,
decorationThickness: decorationThickness ?? this.decorationThickness,
renderingMode: renderingMode ?? this.renderingMode,
);
}