copyWith method
DocxText
copyWith({
- String? content,
- DocxFontWeight? fontWeight,
- DocxFontStyle? fontStyle,
- List<
DocxTextDecoration> ? decorations, - DocxColor? color,
- DocxHighlight? highlight,
- String? shadingFill,
- double? fontSize,
- String? themeColor,
- String? themeTint,
- String? themeShade,
- String? themeFill,
- String? themeFillTint,
- String? themeFillShade,
- String? fontFamily,
- DocxFont? fonts,
- double? characterSpacing,
- String? href,
- bool? isSuperscript,
- bool? isSubscript,
- bool? isAllCaps,
- bool? isSmallCaps,
- bool? isDoubleStrike,
- bool? isOutline,
- bool? isShadow,
- bool? isEmboss,
- bool? isImprint,
- DocxBorderSide? textBorder,
Implementation
DocxText copyWith({
String? content,
DocxFontWeight? fontWeight,
DocxFontStyle? fontStyle,
List<DocxTextDecoration>? decorations,
DocxColor? color,
DocxHighlight? highlight,
String? shadingFill,
double? fontSize,
String? themeColor,
String? themeTint,
String? themeShade,
String? themeFill,
String? themeFillTint,
String? themeFillShade,
String? fontFamily,
DocxFont? fonts,
double? characterSpacing,
String? href,
bool? isSuperscript,
bool? isSubscript,
bool? isAllCaps,
bool? isSmallCaps,
bool? isDoubleStrike,
bool? isOutline,
bool? isShadow,
bool? isEmboss,
bool? isImprint,
DocxBorderSide? textBorder,
}) {
return DocxText(
content ?? this.content,
fontWeight: fontWeight ?? this.fontWeight,
fontStyle: fontStyle ?? this.fontStyle,
decorations: decorations ?? this.decorations,
color: color ?? this.color,
highlight: highlight ?? this.highlight,
shadingFill: shadingFill ?? this.shadingFill,
fontSize: fontSize ?? this.fontSize,
themeColor: themeColor ?? this.themeColor,
themeTint: themeTint ?? this.themeTint,
themeShade: themeShade ?? this.themeShade,
themeFill: themeFill ?? this.themeFill,
themeFillTint: themeFillTint ?? this.themeFillTint,
themeFillShade: themeFillShade ?? this.themeFillShade,
fontFamily: fontFamily ?? this.fontFamily,
fonts: fonts ?? this.fonts,
characterSpacing: characterSpacing ?? this.characterSpacing,
href: href ?? this.href,
isSuperscript: isSuperscript ?? this.isSuperscript,
isSubscript: isSubscript ?? this.isSubscript,
isAllCaps: isAllCaps ?? this.isAllCaps,
isSmallCaps: isSmallCaps ?? this.isSmallCaps,
isDoubleStrike: isDoubleStrike ?? this.isDoubleStrike,
isOutline: isOutline ?? this.isOutline,
isShadow: isShadow ?? this.isShadow,
isEmboss: isEmboss ?? this.isEmboss,
isImprint: isImprint ?? this.isImprint,
textBorder: textBorder ?? this.textBorder,
id: id,
);
}