Text constructor

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

Creates a text widget.

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

Implementation

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