MarkdownStyleSheet constructor

MarkdownStyleSheet({
  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 = WrapAlignment.start,
  33. WrapAlignment h1Align = WrapAlignment.start,
  34. WrapAlignment h2Align = WrapAlignment.start,
  35. WrapAlignment h3Align = WrapAlignment.start,
  36. WrapAlignment h4Align = WrapAlignment.start,
  37. WrapAlignment h5Align = WrapAlignment.start,
  38. WrapAlignment h6Align = WrapAlignment.start,
  39. WrapAlignment unorderedListAlign = WrapAlignment.start,
  40. WrapAlignment orderedListAlign = WrapAlignment.start,
  41. WrapAlignment blockquoteAlign = WrapAlignment.start,
  42. WrapAlignment codeblockAlign = WrapAlignment.start,
  43. double? textScaleFactor,
})

Creates an explicit mapping of TextStyle objects to Markdown elements.

Implementation

MarkdownStyleSheet({
  this.a,
  this.p,
  this.code,
  this.h1,
  this.h2,
  this.h3,
  this.h4,
  this.h5,
  this.h6,
  this.em,
  this.strong,
  this.del,
  this.blockquote,
  this.img,
  this.checkbox,
  this.blockSpacing,
  this.listIndent,
  this.listBullet,
  this.listBulletPadding,
  this.tableHead,
  this.tableBody,
  this.tableHeadAlign,
  this.tableBorder,
  this.tableColumnWidth,
  this.tableCellsPadding,
  this.tableCellsDecoration,
  this.blockquotePadding,
  this.blockquoteDecoration,
  this.codeblockPadding,
  this.codeblockDecoration,
  this.horizontalRuleDecoration,
  this.textAlign = WrapAlignment.start,
  this.h1Align = WrapAlignment.start,
  this.h2Align = WrapAlignment.start,
  this.h3Align = WrapAlignment.start,
  this.h4Align = WrapAlignment.start,
  this.h5Align = WrapAlignment.start,
  this.h6Align = WrapAlignment.start,
  this.unorderedListAlign = WrapAlignment.start,
  this.orderedListAlign = WrapAlignment.start,
  this.blockquoteAlign = WrapAlignment.start,
  this.codeblockAlign = WrapAlignment.start,
  this.textScaleFactor,
}) : _styles = <String, TextStyle?>{
        'a': a,
        'p': p,
        'li': p,
        'code': code,
        'pre': p,
        'h1': h1,
        'h2': h2,
        'h3': h3,
        'h4': h4,
        'h5': h5,
        'h6': h6,
        'em': em,
        'strong': strong,
        'del': del,
        'blockquote': blockquote,
        'img': img,
        'table': p,
        'th': tableHead,
        'tr': tableBody,
        'td': tableBody,
      };