MongolText.rich constructor
const
MongolText.rich(
- TextSpan? textSpan, {
- Key? key,
- TextStyle? style,
- MongolTextAlign? textAlign,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
Creates a vertical Mongolian text widget with a TextSpan.
The textSpan parameter must not be null.
See MongolRichText which provides a lower-level way to draw text.
Implementation
const MongolText.rich(
this.textSpan, {
Key? key,
this.style,
this.textAlign,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
}) : assert(
textSpan != null,
'A non-null TextSpan must be provided to a Text.rich widget.',
),
data = null,
super(key: key);