MongolRichText constructor

const MongolRichText({
  1. Key? key,
  2. required TextSpan text,
  3. MongolTextAlign textAlign = MongolTextAlign.top,
  4. bool softWrap = true,
  5. TextOverflow overflow = TextOverflow.clip,
  6. double textScaleFactor = 1.0,
  7. 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);