CustomRichText constructor

const CustomRichText({
  1. Key? key,
  2. required String firstText,
  3. required String secondText,
  4. String thirdText = '',
  5. double? height,
  6. double? firstTextFontSize,
  7. double? secondTextFontSize,
  8. double? thirdTextFontSize,
  9. String? firstTextFontFamily,
  10. String? secondTextFontFamily,
  11. String? thirdTextFontFamily,
  12. Color? firstTextColor,
  13. Color? secondTextColor,
  14. Color? thirdTextColor,
  15. FontWeight? firstTextFontWeight,
  16. FontWeight? secondTextFontWeight,
  17. FontWeight? thirdTextFontWeight,
  18. TextDecoration? firstTextDecoration,
  19. TextDecoration? secondTextDecoration,
  20. TextDecoration? thirdTextDecoration,
})

this is the constructor of the custom rich text

Implementation

const CustomRichText({
  super.key,
  required this.firstText,
  required this.secondText,
  this.thirdText = '',
  this.height,
  this.firstTextFontSize,
  this.secondTextFontSize,
  this.thirdTextFontSize,
  this.firstTextFontFamily,
  this.secondTextFontFamily,
  this.thirdTextFontFamily,
  this.firstTextColor,
  this.secondTextColor,
  this.thirdTextColor,
  this.firstTextFontWeight,
  this.secondTextFontWeight,
  this.thirdTextFontWeight,
  this.firstTextDecoration,
  this.secondTextDecoration,
  this.thirdTextDecoration,
});