Text constructor

const Text(
  1. String text, {
  2. FontSize? size,
  3. FontWeight? weight,
  4. TextColor? color,
  5. String? colorCustom,
  6. TextAlign? align,
  7. LineHeight? lineHeight,
  8. LetterSpacing? letterSpacing,
  9. TextDecoration? decoration,
  10. TextTransform? transform,
  11. FontFamily? family,
  12. FontStyle? fontStyle,
  13. TextOverflow? overflow,
  14. WhiteSpace? whiteSpace,
  15. int? maxLines,
  16. bool selectable = true,
  17. ArcaneStyleData? style,
  18. String element = 'span',
  19. Key? key,
})

Implementation

const Text(
  this.text, {
  this.size,
  this.weight,
  this.color,
  this.colorCustom,
  this.align,
  this.lineHeight,
  this.letterSpacing,
  this.decoration,
  this.transform,
  this.family,
  this.fontStyle,
  this.overflow,
  this.whiteSpace,
  this.maxLines,
  this.selectable = true,
  this.style,
  this.element = 'span',
  super.key,
});