CustomText constructor

const CustomText({
  1. Key? key,
  2. required String text,
  3. double? size = 16,
  4. int? maxLine = 1,
  5. FontWeight? fontWeight = FontWeight.w400,
  6. Color? color = AppThemeData.greyMediumFontColor,
  7. double? wordSpacing,
  8. VoidCallback? onClick,
  9. TextAlign? textAlign = TextAlign.left,
  10. double? latterSpacing = 0,
})

Implementation

const CustomText(
    {super.key,
    required this.text,
    this.size = 16,
    this.maxLine = 1,
    this.fontWeight = FontWeight.w400,
    this.color = AppThemeData.greyMediumFontColor,
    this.wordSpacing,
    this.onClick,
    this.textAlign = TextAlign.left,
    this.latterSpacing = 0});