foregroundPainter property Null safety

RenderEditablePainter? foregroundPainter

The RenderEditablePainter to use for painting above this RenderEditable's text content.

The new RenderEditablePainter will replace the previously specified foreground painter, and schedule a repaint if the new painter's shouldRepaint method returns true.

Implementation

RenderEditablePainter? get foregroundPainter => _foregroundPainter;
void foregroundPainter=(RenderEditablePainter? newPainter)

Implementation

set foregroundPainter(RenderEditablePainter? newPainter) {
  if (newPainter == _foregroundPainter)
    return;
  _updateForegroundPainter(newPainter);
}