The text to display
Source
TextSpan get text => _textPainter.text;
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(); }