MyText constructor

const MyText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. int? fontWeight = 500,
  5. bool muted = false,
  6. bool xMuted = false,
  7. double? letterSpacing = 0.15,
  8. Color? color,
  9. TextDecoration decoration = TextDecoration.none,
  10. double? height,
  11. double wordSpacing = 0,
  12. double? fontSize,
  13. MyTextType textType = MyTextType.bodyMedium,
  14. TextAlign? textAlign,
  15. int? maxLines,
  16. Locale? locale,
  17. TextOverflow? overflow,
  18. String? semanticsLabel,
  19. bool? softWrap,
  20. StrutStyle? strutStyle,
  21. TextDirection? textDirection,
  22. TextHeightBehavior? textHeightBehavior,
  23. double? textScaleFactor,
  24. TextWidthBasis? textWidthBasis,
})

Implementation

const MyText(
  this.text, {
  super.key,
  this.style,
  this.fontWeight = 500,
  this.muted = false,
  this.xMuted = false,
  this.letterSpacing = 0.15,
  this.color,
  this.decoration = TextDecoration.none,
  this.height,
  this.wordSpacing = 0,
  this.fontSize,
  this.textType = MyTextType.bodyMedium,
  this.textAlign,
  this.maxLines,
  this.locale,
  this.overflow,
  this.semanticsLabel,
  this.softWrap,
  this.strutStyle,
  this.textDirection,
  this.textHeightBehavior,
  this.textScaleFactor,
  this.textWidthBasis,
});