RunFormat constructor

const RunFormat({
  1. bool bold = false,
  2. bool italic = false,
  3. UnderlineStyle underline = UnderlineStyle.none,
  4. bool strike = false,
  5. bool doubleStrike = false,
  6. int? color,
  7. int? highlight,
  8. int? fill,
  9. double size = 11,
  10. String? font,
  11. VerticalTextPosition verticalPosition = VerticalTextPosition.baseline,
  12. bool allCaps = false,
  13. bool smallCaps = false,
  14. double letterSpacing = 0,
})

Run formatting; the defaults are plain 11-point text.

Implementation

const RunFormat({
  this.bold = false,
  this.italic = false,
  this.underline = UnderlineStyle.none,
  this.strike = false,
  this.doubleStrike = false,
  this.color,
  this.highlight,
  this.fill,
  this.size = 11,
  this.font,
  this.verticalPosition = VerticalTextPosition.baseline,
  this.allCaps = false,
  this.smallCaps = false,
  this.letterSpacing = 0,
});