CustomText constructor

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