MText.rich constructor
const
MText.rich({
- Key? key,
- InlineSpan? text,
- List<
InlineSpan> ? children, - Color? color,
- TextDecoration? decoration,
- String? fontFamily,
- double? fontSize,
- FontStyle? fontStyle,
- FontWeight? fontWeight,
- bool forceStrutHeight = false,
- Paint? foreground,
- bool isBold = false,
- bool isDeleted = false,
- bool isItalic = false,
- double? height,
- double? lineHeight,
- Locale? locale,
- int? maxLines,
- TextOverflow? overflow,
- Color? selectionColor,
- String? semanticsLabel,
- List<
Shadow> ? shadows, - bool? softWrap,
- StrutStyle? strutStyle,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextHeightBehavior? textHeightBehavior,
- TextScaler? textScaler,
- 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);