MText constructor

const MText(
  1. String? data, {
  2. Key? key,
  3. Color? color,
  4. TextDecoration? decoration,
  5. String? fontFamily,
  6. double? fontSize,
  7. FontStyle? fontStyle,
  8. FontWeight? fontWeight,
  9. bool forceStrutHeight = false,
  10. Paint? foreground,
  11. bool isBold = false,
  12. bool isDeleted = false,
  13. bool isItalic = false,
  14. double? height,
  15. double? lineHeight,
  16. Locale? locale,
  17. int? maxLines,
  18. TextOverflow? overflow,
  19. Color? selectionColor,
  20. String? semanticsLabel,
  21. List<Shadow>? shadows,
  22. bool? softWrap,
  23. StrutStyle? strutStyle,
  24. TextStyle? style,
  25. TextAlign? textAlign,
  26. TextDirection? textDirection,
  27. TextHeightBehavior? textHeightBehavior,
  28. TextScaler? textScaler,
  29. TextWidthBasis? textWidthBasis,
})

Implementation

const MText(
  this.data, {
  super.key,
  this.color,
  this.decoration,
  this.fontFamily,
  this.fontSize,
  this.fontStyle,
  this.fontWeight,
  this.forceStrutHeight = false,
  this.foreground,
  this.isBold = false,
  this.isDeleted = false,
  this.isItalic = false,
  this.height,
  this.lineHeight,
  this.locale,
  this.maxLines,
  this.overflow,
  this.selectionColor,
  this.semanticsLabel,
  this.shadows,
  this.softWrap,
  this.strutStyle,
  this.style,
  this.textAlign,
  this.textDirection,
  this.textHeightBehavior,
  this.textScaler,
  this.textWidthBasis,
})  : textSpan = null,
      children = null;