text property

TextSpan get text

Implementation

TextSpan get text => _textPainter.text as TextSpan;
set text (TextSpan value)

Implementation

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