text property
The (potentially styled) text to paint.
After this is set, you must call layout before the next call to paint.
This and textDirection must be non-null before you call layout.
Implementation
TextSpan get text => _text;
Implementation
set text(TextSpan value) {
assert(value == null || value.debugAssertIsValid());
if (_text == value)
return;
if (_text?.style != value?.style)
_layoutTemplate = null;
_text = value;
_paragraph = null;
_needsLayout = true;
}