MongolRichText constructor
const
MongolRichText({
- Key? key,
- required TextSpan text,
- MongolTextAlign textAlign = MongolTextAlign.top,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- double textScaleFactor = 1.0,
- int? maxLines,
Creates a paragraph of rich text in vertical orientation for traditional Mongolian.
The maxLines property may be null (and indeed defaults to null), but if it is not null, it must be greater than zero.
The text argument must not be null.
Implementation
const MongolRichText({
Key? key,
required this.text,
this.textAlign = MongolTextAlign.top,
this.softWrap = true,
this.overflow = TextOverflow.clip,
this.textScaleFactor = 1.0,
this.maxLines,
}) : assert(maxLines == null || maxLines > 0),
super(key: key);