WText constructor

const WText(
  1. String data, {
  2. required TextStyles styles,
  3. required WFontWeigth fontType,
  4. required WColor color,
  5. Key? key,
  6. Locale? locale,
  7. int? maxLines,
  8. TextOverflow? overflow,
  9. Color? selectionColor,
  10. String? semanticsLabel,
  11. TextStyle? style,
  12. bool? softWrap,
  13. StrutStyle? strutStyle,
  14. TextAlign? textAlign,
  15. TextDirection? textDirection,
  16. TextHeightBehavior? textHeightBehavior,
  17. double? textScaleFactor,
  18. TextWidthBasis? textWidthBasis,
})

Implementation

const WText(
  super.data, {
  required this.styles,
  required this.fontType,
  required this.color,
  super.key,
  super.locale,
  super.maxLines,
  super.overflow,
  super.selectionColor,
  super.semanticsLabel,
  super.style,
  super.softWrap,
  super.strutStyle,
  super.textAlign,
  super.textDirection,
  super.textHeightBehavior,
  super.textScaleFactor,
  super.textWidthBasis,
});