text property

TextSpan? text

The text to paint in the form of a tree of TextSpans.

In order to get the plain text representation, use plainText.

Implementation

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

Implementation

set text(TextSpan? value) {
  if (_textPainter.text == value) {
    return;
  }
  _cachedLineBreakCount = null;
  _textPainter.text = value;
  _cachedAttributedValue = null;
  _cachedCombinedSemanticsInfos = null;
  markNeedsTextLayout();
  markNeedsSemanticsUpdate();
}