CustomText constructor
const
CustomText({
- Key? key,
- required String text,
- Color? color,
- FontWeight? fontWeight,
- required double fontSize,
- int maxLines = 3,
- TextOverflow overflow = TextOverflow.ellipsis,
- TextDecoration? decoration = TextDecoration.none,
- TextAlign? align = TextAlign.left,
- String? fontFamily,
Implementation
const CustomText({
super.key,
required this.text,
this.color,
this.fontWeight,
required this.fontSize,
this.maxLines = 3,
this.overflow = TextOverflow.ellipsis,
this.decoration = TextDecoration.none,
this.align = TextAlign.left,
this.fontFamily,
});