Txt constructor

const Txt(
  1. String text, {
  2. Key? key,
  3. TxtStyle style = TxtStyle.bodyNormal,
  4. Color? color,
  5. TextOverflow overflow = TextOverflow.ellipsis,
  6. double? width,
  7. double? height,
  8. int? maxLines,
  9. double? letterSpacing = 0,
  10. TextAlign? textAlign,
})

Implementation

const Txt(
  this.text, {
  super.key,
  this.style = TxtStyle.bodyNormal,
  this.color,
  this.overflow = TextOverflow.ellipsis,
  this.width,
  this.height,
  this.maxLines,
  this.letterSpacing = 0,
  this.textAlign,
});