CustomText constructor

const CustomText(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool? softWrap,
  9. TextOverflow? overflow,
  10. double? textScaleFactor,
  11. TextScaler? textScaler,
  12. int? maxLines,
  13. String? semanticsLabel,
  14. TextWidthBasis? textWidthBasis,
  15. TextHeightBehavior? textHeightBehavior,
  16. Color? selectionColor,
  17. int? flex,
  18. Color? color,
  19. double? fontSize,
  20. double? letterSpacing = 0.5,
  21. FontWeight? fontWeight,
  22. TextDecoration? decoration = TextDecoration.none,
  23. Color? backgroundColor,
})

Implementation

const CustomText(super.data, {
  super.key,
  super.style,
  super.strutStyle,
  super.textAlign,
  super.textDirection,
  super.locale,
  super.softWrap,
  super.overflow,
  super.textScaleFactor,
  super.textScaler,
  super.maxLines,
  super.semanticsLabel,
  super.textWidthBasis,
  super.textHeightBehavior,
  super.selectionColor,

  this.flex,
  this.color,
  this.fontSize,
  this.letterSpacing = 0.5,
  this.fontWeight,
  this.decoration = TextDecoration.none,
  this.backgroundColor,
});