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. Color? decorationClr,
  8. TextDecorationStyle? decorationStyle,
  9. TextStyle? textStyle,
  10. double? fontSize,
  11. FontWeight? fontWeight,
  12. double? decorationThickness,
  13. TextOverflow? overflow,
  14. bool checkOverFlow = false,
  15. int? maxLine,
  16. TextAlign textAlign = TextAlign.start,
  17. String? fontFamily,
  18. TextDecoration? textDecoration,
  19. bool removeHTML = false,
  20. dynamic onTap()?,
  21. double? lineHeight,
  22. TextScaler? textScaler,
  23. Key? key,
})

Implementation

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