Creates a paragraph render object.
The text, overflow, and softWrap arguments must not be null.
Source
RenderParagraph(TextSpan text, {
TextAlign textAlign,
bool softWrap: true,
TextOverflow overflow: TextOverflow.clip,
double textScaleFactor: 1.0
}) : _softWrap = softWrap,
_overflow = overflow,
_textPainter = new TextPainter(
text: text,
textAlign: textAlign,
textScaleFactor: textScaleFactor,
ellipsis: overflow == TextOverflow.ellipsis ? _kEllipsis : null,
) {
assert(text != null);
assert(text.debugAssertIsValid());
assert(softWrap != null);
assert(overflow != null);
assert(textScaleFactor != null);
}