CustomText constructor
const
CustomText({
- Key? key,
- required String text,
- FontWeight fontWeight = FontWeight.w400,
- double fontSize = 14.0,
- double height = 1.4,
- int maxLine = 6,
- Color color = Colors.black,
- TextDecoration decoration = TextDecoration.none,
- TextOverflow overflow = TextOverflow.ellipsis,
- TextAlign textAlign = TextAlign.start,
Implementation
const CustomText({
super.key,
required this.text,
this.fontWeight = FontWeight.w400,
this.fontSize = 14.0,
this.height = 1.4,
this.maxLine = 6,
this.color = Colors.black,
this.decoration = TextDecoration.none,
this.overflow = TextOverflow.ellipsis,
this.textAlign = TextAlign.start,
});