text property

TextSpan text

The text to display

Implementation

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

Implementation

set text(TextSpan value) {
  assert(value != null);
  switch (_textPainter.text.compareTo(value)) {
    case RenderComparison.identical:
    case RenderComparison.metadata:
      return;
    case RenderComparison.paint:
      _textPainter.text = value;
      markNeedsPaint();
      markNeedsSemanticsUpdate();
      break;
    case RenderComparison.layout:
      _textPainter.text = value;
      _overflowShader = null;
      markNeedsLayout();
      break;
  }
}