CustomText constructor

const CustomText({
  1. Key? key,
  2. dynamic txt = "",
  3. double? height = 1,
  4. String fontfamily = '',
  5. double? fontSize = 16,
  6. int? maxLine = 20,
  7. Color? color = Colors.black,
  8. FontWeight? fontWeight = FontWeight.w400,
  9. TextAlign? textAlign = TextAlign.justify,
  10. TextOverflow? overflow = TextOverflow.ellipsis,
  11. double? wordSpacing = 0,
  12. TextDecoration? decoration = TextDecoration.none,
  13. double? lineSpace = 1,
  14. TextDirection? txtDirection,
  15. bool? wrap = false,
  16. Color? decorationColor = Colors.black,
  17. TextScaler? textScaler,
})

Implementation

const CustomText({super.key,
  this.txt = "",
  this.height = 1,
  this.fontfamily = '' ,
  this.fontSize = 16,
  this.maxLine = 20 ,
  this.color = Colors.black,
  this.fontWeight = FontWeight.w400,
  this.textAlign = TextAlign.justify,
  this.overflow = TextOverflow.ellipsis,
  this.wordSpacing = 0,
  this.decoration = TextDecoration.none,
  this.lineSpace = 1 ,
  this.txtDirection ,
  this.wrap = false ,
  this.decorationColor = Colors.black,
  this.textScaler ,
});