copyWith method

DocxText copyWith({
  1. String? content,
  2. DocxFontWeight? fontWeight,
  3. DocxFontStyle? fontStyle,
  4. List<DocxTextDecoration>? decorations,
  5. DocxColor? color,
  6. DocxHighlight? highlight,
  7. String? shadingFill,
  8. double? fontSize,
  9. String? themeColor,
  10. String? themeTint,
  11. String? themeShade,
  12. String? themeFill,
  13. String? themeFillTint,
  14. String? themeFillShade,
  15. String? fontFamily,
  16. DocxFont? fonts,
  17. double? characterSpacing,
  18. String? href,
  19. bool? isSuperscript,
  20. bool? isSubscript,
  21. bool? isAllCaps,
  22. bool? isSmallCaps,
  23. bool? isDoubleStrike,
  24. bool? isOutline,
  25. bool? isShadow,
  26. bool? isEmboss,
  27. bool? isImprint,
  28. 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,
  );
}