MRichText constructor

const MRichText({
  1. Key? key,
  2. List<InlineSpan>? children,
  3. Color? color,
  4. String? fontFamily,
  5. double? fontSize,
  6. FontStyle? fontStyle,
  7. FontWeight? fontWeight,
  8. bool forceStrutHeight = false,
  9. bool isBold = false,
  10. Locale? locale,
  11. int? maxLines,
  12. TextOverflow overflow = TextOverflow.clip,
  13. Color? selectionColor,
  14. bool softWrap = true,
  15. StrutStyle? strutStyle,
  16. TextStyle? style,
  17. InlineSpan? text,
  18. TextAlign textAlign = TextAlign.start,
  19. TextDirection? textDirection,
  20. TextHeightBehavior? textHeightBehavior,
  21. TextScaler textScaler = TextScaler.noScaling,
  22. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
})

Implementation

const MRichText({
  super.key,
  this.children,
  this.color,
  this.fontFamily,
  this.fontSize,
  this.fontStyle,
  this.fontWeight,
  this.forceStrutHeight = false,
  this.isBold = false,
  this.locale,
  this.maxLines,
  this.overflow = TextOverflow.clip,
  this.selectionColor,
  this.softWrap = true,
  this.strutStyle,
  this.style,
  this.text,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.textHeightBehavior,
  this.textScaler = TextScaler.noScaling,
  this.textWidthBasis = TextWidthBasis.parent,
});