text property

String get text

The text content of this span.

Mutating this invalidates the cached Paragraph built by buildParagraph, so the next draw rebuilds it.

Implementation

String get text => _text;
set text (String value)

Implementation

set text(String value) {
  if (value == _text) return;
  _text = value;
  _cachedParagraph = null;
  _cachedParagraphKey = null;
  _lastLayoutWidth = -1;
}