Text constructor
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);