TextSpan text

The text to display

Source

TextSpan get text => _textPainter.text;
void text=(TextSpan value)

Source

set text(TextSpan value) {
  if (_textPainter.text == value)
    return;
  TextSpan oldStyledText = _textPainter.text;
  if (oldStyledText.style != value.style)
    _layoutTemplate = null;
  _textPainter.text = value;
  markNeedsLayout();
}