copyWith method

MarkdownStyleSheet copyWith (
  1. {TextStyle a,
  2. TextStyle p,
  3. TextStyle code,
  4. TextStyle h1,
  5. TextStyle h2,
  6. TextStyle h3,
  7. TextStyle h4,
  8. TextStyle h5,
  9. TextStyle h6,
  10. TextStyle em,
  11. TextStyle strong,
  12. TextStyle del,
  13. TextStyle blockquote,
  14. TextStyle img,
  15. TextStyle checkbox,
  16. double blockSpacing,
  17. double listIndent,
  18. TextStyle listBullet,
  19. TextStyle tableHead,
  20. TextStyle tableBody,
  21. TextAlign tableHeadAlign,
  22. TableBorder tableBorder,
  23. TableColumnWidth tableColumnWidth,
  24. EdgeInsets tableCellsPadding,
  25. Decoration tableCellsDecoration,
  26. EdgeInsets blockquotePadding,
  27. Decoration blockquoteDecoration,
  28. EdgeInsets codeblockPadding,
  29. Decoration codeblockDecoration,
  30. Decoration horizontalRuleDecoration,
  31. WrapAlignment textAlign,
  32. WrapAlignment h1Align,
  33. WrapAlignment h2Align,
  34. WrapAlignment h3Align,
  35. WrapAlignment h4Align,
  36. WrapAlignment h5Align,
  37. WrapAlignment h6Align,
  38. WrapAlignment unorderedListAlign,
  39. WrapAlignment orderedListAlign,
  40. WrapAlignment blockquoteAlign,
  41. WrapAlignment codeblockAlign,
  42. double textScaleFactor}
)

Creates a MarkdownStyleSheet based on the current style, with the provided parameters overridden.

Implementation

MarkdownStyleSheet copyWith({
  TextStyle a,
  TextStyle p,
  TextStyle code,
  TextStyle h1,
  TextStyle h2,
  TextStyle h3,
  TextStyle h4,
  TextStyle h5,
  TextStyle h6,
  TextStyle em,
  TextStyle strong,
  TextStyle del,
  TextStyle blockquote,
  TextStyle img,
  TextStyle checkbox,
  double blockSpacing,
  double listIndent,
  TextStyle listBullet,
  TextStyle tableHead,
  TextStyle tableBody,
  TextAlign tableHeadAlign,
  TableBorder tableBorder,
  TableColumnWidth tableColumnWidth,
  EdgeInsets tableCellsPadding,
  Decoration tableCellsDecoration,
  EdgeInsets blockquotePadding,
  Decoration blockquoteDecoration,
  EdgeInsets codeblockPadding,
  Decoration codeblockDecoration,
  Decoration horizontalRuleDecoration,
  WrapAlignment textAlign,
  WrapAlignment h1Align,
  WrapAlignment h2Align,
  WrapAlignment h3Align,
  WrapAlignment h4Align,
  WrapAlignment h5Align,
  WrapAlignment h6Align,
  WrapAlignment unorderedListAlign,
  WrapAlignment orderedListAlign,
  WrapAlignment blockquoteAlign,
  WrapAlignment codeblockAlign,
  double textScaleFactor,
}) {
  return MarkdownStyleSheet(
    a: a ?? this.a,
    p: p ?? this.p,
    code: code ?? this.code,
    h1: h1 ?? this.h1,
    h2: h2 ?? this.h2,
    h3: h3 ?? this.h3,
    h4: h4 ?? this.h4,
    h5: h5 ?? this.h5,
    h6: h6 ?? this.h6,
    em: em ?? this.em,
    strong: strong ?? this.strong,
    del: del ?? this.del,
    blockquote: blockquote ?? this.blockquote,
    img: img ?? this.img,
    checkbox: checkbox ?? this.checkbox,
    blockSpacing: blockSpacing ?? this.blockSpacing,
    listIndent: listIndent ?? this.listIndent,
    listBullet: listBullet ?? this.listBullet,
    tableHead: tableHead ?? this.tableHead,
    tableBody: tableBody ?? this.tableBody,
    tableHeadAlign: tableHeadAlign ?? this.tableHeadAlign,
    tableBorder: tableBorder ?? this.tableBorder,
    tableColumnWidth: tableColumnWidth ?? this.tableColumnWidth,
    tableCellsPadding: tableCellsPadding ?? this.tableCellsPadding,
    tableCellsDecoration: tableCellsDecoration ?? this.tableCellsDecoration,
    blockquotePadding: blockquotePadding ?? this.blockquotePadding,
    blockquoteDecoration: blockquoteDecoration ?? this.blockquoteDecoration,
    codeblockPadding: codeblockPadding ?? this.codeblockPadding,
    codeblockDecoration: codeblockDecoration ?? this.codeblockDecoration,
    horizontalRuleDecoration:
        horizontalRuleDecoration ?? this.horizontalRuleDecoration,
    textAlign: textAlign ?? this.textAlign,
    h1Align: h1Align ?? this.h1Align,
    h2Align: h2Align ?? this.h2Align,
    h3Align: h3Align ?? this.h3Align,
    h4Align: h4Align ?? this.h4Align,
    h5Align: h5Align ?? this.h5Align,
    h6Align: h6Align ?? this.h6Align,
    unorderedListAlign: unorderedListAlign ?? this.unorderedListAlign,
    orderedListAlign: orderedListAlign ?? this.orderedListAlign,
    blockquoteAlign: blockquoteAlign ?? this.blockquoteAlign,
    codeblockAlign: codeblockAlign ?? this.codeblockAlign,
    textScaleFactor: textScaleFactor ?? this.textScaleFactor,
  );
}