AppText constructor

const AppText({
  1. Key? key,
  2. required String text,
  3. double? fontSize,
  4. Color? color,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. TextAlign? textAlign,
  8. int? maxLines,
  9. TextOverflow? overflow,
  10. double? letterSpacing,
  11. double? wordSpacing,
  12. double? height,
  13. TextDecoration? decoration,
  14. Color? decorationColor,
  15. TextDecorationStyle? decorationStyle,
  16. TextBaseline? textBaseline,
  17. Locale? locale,
  18. StrutStyle? strutStyle,
  19. TextDirection? textDirection,
  20. bool? softWrap,
  21. TextWidthBasis? textWidthBasis,
  22. List<Shadow>? shadows,
  23. String? fontFamily,
  24. TextStyle? style,
  25. TextHeightBehavior? textHeightBehavior,
  26. bool selectable = false,
})

Creates a new AppText.

Implementation

const AppText({
  super.key,
  required this.text,
  this.fontSize,
  this.color,
  this.fontWeight,
  this.fontStyle,
  this.textAlign,
  this.maxLines,
  this.overflow,
  this.letterSpacing,
  this.wordSpacing,
  this.height,
  this.decoration,
  this.decorationColor,
  this.decorationStyle,
  this.textBaseline,
  this.locale,
  this.strutStyle,
  this.textDirection,
  this.softWrap,
  this.textWidthBasis,
  this.shadows,
  this.fontFamily,
  this.style,
  this.textHeightBehavior,
  this.selectable = false,
});