AnsiRendererOptions constructor

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

Creates renderer options with the given settings.

Implementation

const AnsiRendererOptions({
  this.width,
  this.hasDarkBackground = true,
  this.textStyle,
  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.codeBlockBorderStyle,
});