MarkdownOptions constructor

const MarkdownOptions({
  1. int? width,
  2. bool? hasDarkBackground,
  3. Style? h1Style,
  4. Style? h2Style,
  5. Style? h3Style,
  6. Style? h4Style,
  7. Style? h5Style,
  8. Style? h6Style,
  9. Style? emphasisStyle,
  10. Style? strongStyle,
  11. Style? codeStyle,
  12. Style? codeBlockStyle,
  13. Style? linkStyle,
  14. Style? blockquoteStyle,
  15. Color? blockquoteBorderColor,
  16. Style? strikethroughStyle,
  17. String bulletChar = '\u2022',
  18. bool hyperlinks = true,
  19. String hrChar = '\u2500',
  20. int? hrWidth,
  21. String checkboxChecked = '\u2611',
  22. String checkboxUnchecked = '\u2610',
  23. int listIndent = 2,
  24. bool codeBlockBorder = true,
  25. Border? tableBorder,
  26. Style? tableHeaderStyle,
  27. Style? tableCellStyle,
  28. Style? tableBorderStyle,
  29. bool syntaxHighlighting = true,
  30. AdaptiveChromaTheme? syntaxTheme,
  31. ChromaTheme? explicitSyntaxTheme,
  32. Border? codeBlockBorderStyle,
})

Creates markdown options with the given settings.

Implementation

const MarkdownOptions({
  this.width,
  this.hasDarkBackground,
  this.h1Style,
  this.h2Style,
  this.h3Style,
  this.h4Style,
  this.h5Style,
  this.h6Style,
  this.emphasisStyle,
  this.strongStyle,
  this.codeStyle,
  this.codeBlockStyle,
  this.linkStyle,
  this.blockquoteStyle,
  this.blockquoteBorderColor,
  this.strikethroughStyle,
  this.bulletChar = '\u2022',
  this.hyperlinks = true,
  this.hrChar = '\u2500',
  this.hrWidth,
  this.checkboxChecked = '\u2611',
  this.checkboxUnchecked = '\u2610',
  this.listIndent = 2,
  this.codeBlockBorder = true,
  this.tableBorder,
  this.tableHeaderStyle,
  this.tableCellStyle,
  this.tableBorderStyle,
  this.syntaxHighlighting = true,
  this.syntaxTheme,
  this.explicitSyntaxTheme,
  this.codeBlockBorderStyle,
});