MongolText.rich constructor

const MongolText.rich(
  1. TextSpan? textSpan, {
  2. Key? key,
  3. TextStyle? style,
  4. MongolTextAlign? textAlign,
  5. bool? softWrap,
  6. TextOverflow? overflow,
  7. double? textScaleFactor,
  8. int? maxLines,
  9. 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);