CustomText constructor

const CustomText({
  1. Key? key,
  2. required String text,
  3. String? fontFamily,
  4. double? size,
  5. double? lineHeight,
  6. Color? color,
  7. FontWeight? weight,
  8. FontStyle? fontStyle,
  9. TextOverflow? overflow,
  10. TextDecoration? textDecoration,
  11. bool hasShadow = false,
  12. TextAlign? textAlign,
  13. int? maxLines,
  14. Color? primaryColor,
  15. bool primary = false,
  16. bool forValue = false,
})

Implementation

const CustomText({
  super.key,
  required this.text,
  this.fontFamily,
  this.size,
  this.lineHeight,
  this.color,
  this.weight,
  this.fontStyle,
  this.overflow,
  this.textDecoration,
  this.hasShadow = false,
  this.textAlign,
  this.maxLines,
  this.primaryColor,
  this.primary = false,
  this.forValue = false,
});