CustomText constructor

const CustomText({
  1. Key? key,
  2. required String text,
  3. double? fontSize,
  4. TextAlign? textAlign,
  5. Color? backgroundColor,
  6. Color? color,
  7. FontWeight? fontWeight = FontWeight.w400,
  8. int? maxLines,
  9. TextDecoration? textDecoration,
  10. TextOverflow? overflow,
  11. FontStyle? fontStyle,
  12. TextStyle? style,
  13. double? height,
  14. String? fontFamily,
  15. double? wordSpaces,
  16. TextDirection? textDirection,
})

Implementation

const CustomText({
  super.key,
  required this.text,
  this.fontSize,
  this.textAlign,
  this.backgroundColor,
  this.color,
  this.fontWeight = FontWeight.w400,
  this.maxLines,
  this.textDecoration,
  this.overflow,
  this.fontStyle,
  this.style,
  this.height,
  this.fontFamily,
  this.wordSpaces,
  this.textDirection,
});