CustomTextWidget constructor

const CustomTextWidget({
  1. Key? key,
  2. required String text,
  3. Color? textColor,
  4. double fontSize = 16.0,
  5. int? maxLines,
  6. FontWeight? fontWeight,
  7. TextAlign? textAlign,
  8. VoidCallback? onTap,
  9. TextDecoration? decoration,
  10. String? fontFamily,
})

Implementation

const CustomTextWidget({
  super.key,
  required this.text,
  this.textColor,
  this.fontSize = 16.0,
  this.maxLines,
  this.fontWeight,
  this.textAlign,
  this.onTap,
  this.decoration,
  this.fontFamily,
});