MongolText constructor

const MongolText(
  1. String? data, {
  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 text widget for vertical Mongolian layout.

If the style argument is null, the text will use the style from the closest enclosing DefaultTextStyle.

The overflow property's behavior is affected by the softWrap argument. If the softWrap is true or null, the glyph causing overflow, and those that follow, will not be rendered. Otherwise, it will be shown with the given overflow option.

Implementation

const MongolText(
  this.data, {
  Key? key,
  this.style,
  this.textAlign,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
})  : assert(
        data != null,
        'A non-null String must be provided to a MongolText widget.',
      ),
      textSpan = null,
      super(key: key);