Txt constructor

const Txt(
  1. String? text, {
  2. bool hasBold = false,
  3. bool hasItalic = false,
  4. bool hasUnderLine = false,
  5. bool hasLineThrough = false,
  6. Color? textColor,
  7. TextStyle? textStyle,
  8. double? fontSize,
  9. FontWeight? fontWeight,
  10. TextOverflow? overflow,
  11. bool checkOverFlow = false,
  12. int? maxLine,
  13. TextAlign textAlign = TextAlign.start,
  14. String? fontFamily,
  15. TextDecoration? textDecoration,
  16. bool removeHTML = false,
  17. dynamic onTap()?,
  18. double? lineHeight,
  19. Key? key,
})

Implementation

const Txt(
  this.text, {
  this.hasBold = false,
  this.hasItalic = false,
  this.hasUnderLine = false,
  this.hasLineThrough = false,
  this.textColor,
  this.textStyle,
  this.fontSize,
  this.fontWeight,
  this.overflow,
  this.checkOverFlow = false,
  this.maxLine,
  this.textAlign = TextAlign.start,
  this.fontFamily,
  this.textDecoration,
  this.removeHTML = false,
  this.onTap,
  this.lineHeight,
  super.key,
});