AppText constructor

const AppText({
  1. Key? key,
  2. required String text,
  3. int size = 18,
  4. Color? color,
  5. FontWeight fontWeight = FontWeight.w400,
  6. TextDecoration? decoration,
  7. TextAlign? textAlign,
  8. int? maxline,
  9. double? letterSpacing = 0,
  10. double? height,
  11. double? minFontSize,
  12. double? wordSpacing,
})

Implementation

const AppText({
  super.key,
  required this.text,
  this.size = 18,
  this.color,
  this.fontWeight = FontWeight.w400,
  this.decoration,
  this.textAlign,
  this.maxline,
  this.letterSpacing = 0,
  this.height,
  this.minFontSize,
  this.wordSpacing,
});