data property

String get data

Implementation

String get data => _data;
set data (String value)

Implementation

set data(String value) {
  if (_data == value) return;
  _data = value;
  // Text content changed. Since text boxes are measured and painted by the
  // parent's inline formatting context, notify the parent to relayout so the
  // paragraph gets rebuilt with the new text content.
  parent?.markNeedsLayout();
  // When not in IFC (no RenderBoxModel parent), we layout/paint ourselves.
  // Ensure we relayout to rebuild TextPainter metrics.
  markNeedsLayout();
  _cachedSpan = null;
  _textPainter = null;
}