copyWith method

MarkdownStyleSheet copyWith({
  1. TextStyle? textStyle,
  2. TextStyle? h1Style,
  3. TextStyle? h2Style,
  4. TextStyle? h3Style,
  5. TextStyle? h4Style,
  6. TextStyle? h5Style,
  7. TextStyle? h6Style,
  8. TextStyle? paragraphStyle,
  9. TextStyle? blockquoteStyle,
  10. TextStyle? codeBlockStyle,
  11. TextStyle? inlineCodeStyle,
  12. TextStyle? linkStyle,
  13. TextStyle? boldStyle,
  14. TextStyle? italicStyle,
  15. TextStyle? strikethroughStyle,
  16. TextStyle? listBulletStyle,
  17. TextStyle? tableHeaderStyle,
  18. TextStyle? tableCellStyle,
  19. BoxDecoration? blockquoteDecoration,
  20. BoxDecoration? codeBlockDecoration,
  21. TableBorder? tableBorder,
  22. BoxDecoration? tableHeaderDecoration,
  23. BoxDecoration? tableOddRowDecoration,
  24. BoxDecoration? tableEvenRowDecoration,
  25. Color? horizontalRuleColor,
  26. double? horizontalRuleThickness,
  27. double? blockSpacing,
  28. double? listIndent,
  29. EdgeInsets? blockquotePadding,
  30. EdgeInsets? codeBlockPadding,
  31. EdgeInsets? tableCellPadding,
})

Creates a copy of this style sheet with the given fields replaced

Implementation

MarkdownStyleSheet copyWith({
  TextStyle? textStyle,
  TextStyle? h1Style,
  TextStyle? h2Style,
  TextStyle? h3Style,
  TextStyle? h4Style,
  TextStyle? h5Style,
  TextStyle? h6Style,
  TextStyle? paragraphStyle,
  TextStyle? blockquoteStyle,
  TextStyle? codeBlockStyle,
  TextStyle? inlineCodeStyle,
  TextStyle? linkStyle,
  TextStyle? boldStyle,
  TextStyle? italicStyle,
  TextStyle? strikethroughStyle,
  TextStyle? listBulletStyle,
  TextStyle? tableHeaderStyle,
  TextStyle? tableCellStyle,
  BoxDecoration? blockquoteDecoration,
  BoxDecoration? codeBlockDecoration,
  TableBorder? tableBorder,
  BoxDecoration? tableHeaderDecoration,
  BoxDecoration? tableOddRowDecoration,
  BoxDecoration? tableEvenRowDecoration,
  Color? horizontalRuleColor,
  double? horizontalRuleThickness,
  double? blockSpacing,
  double? listIndent,
  EdgeInsets? blockquotePadding,
  EdgeInsets? codeBlockPadding,
  EdgeInsets? tableCellPadding,
}) {
  return MarkdownStyleSheet(
    textStyle: textStyle ?? this.textStyle,
    h1Style: h1Style ?? this.h1Style,
    h2Style: h2Style ?? this.h2Style,
    h3Style: h3Style ?? this.h3Style,
    h4Style: h4Style ?? this.h4Style,
    h5Style: h5Style ?? this.h5Style,
    h6Style: h6Style ?? this.h6Style,
    paragraphStyle: paragraphStyle ?? this.paragraphStyle,
    blockquoteStyle: blockquoteStyle ?? this.blockquoteStyle,
    codeBlockStyle: codeBlockStyle ?? this.codeBlockStyle,
    inlineCodeStyle: inlineCodeStyle ?? this.inlineCodeStyle,
    linkStyle: linkStyle ?? this.linkStyle,
    boldStyle: boldStyle ?? this.boldStyle,
    italicStyle: italicStyle ?? this.italicStyle,
    strikethroughStyle: strikethroughStyle ?? this.strikethroughStyle,
    listBulletStyle: listBulletStyle ?? this.listBulletStyle,
    tableHeaderStyle: tableHeaderStyle ?? this.tableHeaderStyle,
    tableCellStyle: tableCellStyle ?? this.tableCellStyle,
    blockquoteDecoration: blockquoteDecoration ?? this.blockquoteDecoration,
    codeBlockDecoration: codeBlockDecoration ?? this.codeBlockDecoration,
    tableBorder: tableBorder ?? this.tableBorder,
    tableHeaderDecoration: tableHeaderDecoration ?? this.tableHeaderDecoration,
    tableOddRowDecoration: tableOddRowDecoration ?? this.tableOddRowDecoration,
    tableEvenRowDecoration: tableEvenRowDecoration ?? this.tableEvenRowDecoration,
    horizontalRuleColor: horizontalRuleColor ?? this.horizontalRuleColor,
    horizontalRuleThickness:
        horizontalRuleThickness ?? this.horizontalRuleThickness,
    blockSpacing: blockSpacing ?? this.blockSpacing,
    listIndent: listIndent ?? this.listIndent,
    blockquotePadding: blockquotePadding ?? this.blockquotePadding,
    codeBlockPadding: codeBlockPadding ?? this.codeBlockPadding,
    tableCellPadding: tableCellPadding ?? this.tableCellPadding,
  );
}