RichTextX constructor
RichTextX(
- {Key? key,
- required TextSpan text,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- bool softWrap = false,
- TextOverflow overflow = TextOverflow.ellipsis,
- double textScaleFactor = 1.0,
- int? maxLines,
- Locale? locale,
- StrutStyle? strutStyle,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior}
Implementation
RichTextX({
Key? key,
required TextSpan text,
TextAlign textAlign = TextAlign.start,
TextDirection? textDirection,
bool softWrap = false,
TextOverflow overflow = TextOverflow.ellipsis,
double textScaleFactor = 1.0,
int? maxLines,
Locale? locale,
StrutStyle? strutStyle,
TextWidthBasis textWidthBasis = TextWidthBasis.parent,
TextHeightBehavior? textHeightBehavior,
}) : assert(maxLines == null || maxLines > 0),
super(
key: key,
text: text,
textAlign: textAlign,
textDirection: textDirection,
softWrap: softWrap,
overflow: overflow,
textScaleFactor: textScaleFactor,
maxLines: maxLines,
locale: locale,
strutStyle: strutStyle,
textWidthBasis: textWidthBasis,
textHeightBehavior: textHeightBehavior);