TextAnnotations constructor

TextAnnotations({
  1. bool bold = false,
  2. bool italic = false,
  3. bool strikethrough = false,
  4. bool underline = false,
  5. bool code = false,
  6. ColorsTypes color = ColorsTypes.Default,
})

Main text annotations constructor.

Can receive if the text will be bold, italic, strikethrough, underline and/or code. Also the color of the text.

Valid colors are defined by the Colors enum. By default the color type is... Default dah.

Implementation

TextAnnotations({
  this.bold: false,
  this.italic: false,
  this.strikethrough: false,
  this.underline: false,
  this.code: false,
  this.color: ColorsTypes.Default,
});