MRichText constructor
const
MRichText({
- Key? key,
- List<
InlineSpan> ? children, - Color? color,
- String? fontFamily,
- double? fontSize,
- FontStyle? fontStyle,
- FontWeight? fontWeight,
- bool forceStrutHeight = false,
- bool isBold = false,
- Locale? locale,
- int? maxLines,
- TextOverflow overflow = TextOverflow.clip,
- Color? selectionColor,
- bool softWrap = true,
- StrutStyle? strutStyle,
- TextStyle? style,
- InlineSpan? text,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- TextHeightBehavior? textHeightBehavior,
- TextScaler textScaler = TextScaler.noScaling,
- 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,
});