Text.rich constructor

const Text.rich(TextSpan textSpan, { Key key, TextStyle style, TextAlign textAlign, TextDirection textDirection, Locale locale, bool softWrap, TextOverflow overflow, double textScaleFactor, int maxLines, String semanticsLabel })

Creates a text widget with a TextSpan.

Implementation

const Text.rich(this.textSpan, {
  Key key,
  this.style,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
}): assert(textSpan != null),
    data = null,
    super(key: key);