MText.rich constructor

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

Implementation

const MText.rich({
  super.key,
  InlineSpan? text,
  this.children,
  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,
})  : data = null,
      textSpan = text,
      assert(text == null || children == null);