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. EdgeInsets? listBulletPadding,
  20. TextStyle? tableHead,
  21. TextStyle? tableBody,
  22. TextAlign? tableHeadAlign,
  23. TableBorder? tableBorder,
  24. TableColumnWidth? tableColumnWidth,
  25. EdgeInsets? tableCellsPadding,
  26. Decoration? tableCellsDecoration,
  27. EdgeInsets? blockquotePadding,
  28. Decoration? blockquoteDecoration,
  29. EdgeInsets? codeblockPadding,
  30. Decoration? codeblockDecoration,
  31. Decoration? horizontalRuleDecoration,
  32. WrapAlignment? textAlign,
  33. WrapAlignment? h1Align,
  34. WrapAlignment? h2Align,
  35. WrapAlignment? h3Align,
  36. WrapAlignment? h4Align,
  37. WrapAlignment? h5Align,
  38. WrapAlignment? h6Align,
  39. WrapAlignment? unorderedListAlign,
  40. WrapAlignment? orderedListAlign,
  41. WrapAlignment? blockquoteAlign,
  42. WrapAlignment? codeblockAlign,
  43. 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,
  EdgeInsets? listBulletPadding,
  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,
    listBulletPadding: listBulletPadding ?? this.listBulletPadding,
    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,
  );
}