CustomText constructor

const CustomText({
  1. Key? key,
  2. required String text,
  3. FontWeight fontWeight = FontWeight.w400,
  4. double fontSize = 14.0,
  5. double height = 1.4,
  6. int maxLine = 6,
  7. Color color = Colors.black,
  8. TextDecoration decoration = TextDecoration.none,
  9. TextOverflow overflow = TextOverflow.ellipsis,
  10. 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,
});