CustomText constructor
const
CustomText({
- Key? key,
- dynamic txt = "",
- double? height = 1,
- String fontfamily = '',
- double? fontSize = 16,
- int? maxLine = 20,
- Color? color = Colors.black,
- FontWeight? fontWeight = FontWeight.w400,
- TextAlign? textAlign = TextAlign.justify,
- TextOverflow? overflow = TextOverflow.ellipsis,
- double? wordSpacing = 0,
- TextDecoration? decoration = TextDecoration.none,
- double? lineSpace = 1,
- TextDirection? txtDirection,
- bool? wrap = false,
- Color? decorationColor = Colors.black,
- 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 ,
});