StyleData constructor

const StyleData({
  1. bool bold = false,
  2. bool italic = false,
  3. bool underline = false,
  4. UnderlineStyle underlineStyle = UnderlineStyle.single,
  5. bool strikethrough = false,
  6. bool dim = false,
  7. bool inverse = false,
  8. bool blink = false,
  9. Color? foreground,
  10. Color? background,
  11. Color? borderForeground,
  12. Color? borderBackground,
  13. Color? borderTopForeground,
  14. Color? borderRightForeground,
  15. Color? borderBottomForeground,
  16. Color? borderLeftForeground,
  17. Color? borderTopBackground,
  18. Color? borderRightBackground,
  19. Color? borderBottomBackground,
  20. Color? borderLeftBackground,
  21. List<Color> borderForegroundBlend = const [],
  22. int borderForegroundBlendOffset = 0,
  23. int? width,
  24. int? height,
  25. int? maxWidth,
  26. int? maxHeight,
  27. Padding padding = Padding.zero,
  28. Margin margin = Margin.zero,
  29. HorizontalAlign align = HorizontalAlign.left,
  30. VerticalAlign alignVertical = VerticalAlign.top,
  31. Border? border,
  32. BorderSides borderSides = BorderSides.all,
  33. bool inline = false,
  34. bool wrapAnsi = false,
  35. String transform(
    1. String
    )?,
  36. String paddingChar = ' ',
  37. String marginChar = ' ',
  38. String whitespaceChar = ' ',
  39. Color? whitespaceForeground,
  40. String? stringValue,
  41. int tabWidth = 4,
  42. bool underlineSpaces = false,
  43. bool strikethroughSpaces = false,
  44. bool colorWhitespace = true,
  45. String? hyperlinkUrl,
  46. String hyperlinkParams = '',
  47. Color? marginBackground,
  48. Color? underlineColor,
})

Implementation

const StyleData({
  this.bold = false,
  this.italic = false,
  this.underline = false,
  this.underlineStyle = UnderlineStyle.single,
  this.strikethrough = false,
  this.dim = false,
  this.inverse = false,
  this.blink = false,
  this.foreground,
  this.background,
  this.borderForeground,
  this.borderBackground,
  this.borderTopForeground,
  this.borderRightForeground,
  this.borderBottomForeground,
  this.borderLeftForeground,
  this.borderTopBackground,
  this.borderRightBackground,
  this.borderBottomBackground,
  this.borderLeftBackground,
  this.borderForegroundBlend = const [],
  this.borderForegroundBlendOffset = 0,
  this.width,
  this.height,
  this.maxWidth,
  this.maxHeight,
  this.padding = Padding.zero,
  this.margin = Margin.zero,
  this.align = HorizontalAlign.left,
  this.alignVertical = VerticalAlign.top,
  this.border,
  this.borderSides = BorderSides.all,
  this.inline = false,
  this.wrapAnsi = false,
  this.transform,
  this.paddingChar = ' ',
  this.marginChar = ' ',
  this.whitespaceChar = ' ',
  this.whitespaceForeground,
  this.stringValue,
  this.tabWidth = 4,
  this.underlineSpaces = false,
  this.strikethroughSpaces = false,
  this.colorWhitespace = true,
  this.hyperlinkUrl,
  this.hyperlinkParams = '',
  this.marginBackground,
  this.underlineColor,
});