Text constructor

Text({
  1. String fontFamily = 'sans-serif',
  2. int pixelSize = 16,
  3. String color = '#000000',
  4. String text = '',
  5. HAlign hAlign = HAlign.left,
  6. VAlign vAlign = VAlign.top,
  7. bool bold = false,
  8. bool italic = false,
  9. bool underline = false,
  10. bool strikeout = false,
  11. bool kerning = true,
  12. bool wrap = false,
})

Implementation

Text({
  this.fontFamily = 'sans-serif',
  this.pixelSize = 16,
  this.color = '#000000',
  this.text = '',
  this.hAlign = HAlign.left,
  this.vAlign = VAlign.top,
  this.bold = false,
  this.italic = false,
  this.underline = false,
  this.strikeout = false,
  this.kerning = true,
  this.wrap = false,
});