foregroundPainter property
The foreground custom paint delegate.
This painter, if non-null, is called to paint in front of the children.
Implementation
CustomPainter get foregroundPainter => _foregroundPainter;
Set a new foreground custom paint delegate.
If the new delegate is the same as the previous one, this does nothing.
If the new delegate is the same class as the previous one, then the new delegate has its CustomPainter.shouldRepaint called; if the result is true, then the delegate will be called.
If the new delegate is a different class than the previous one, then the delegate will be called.
If the new value is null, then there is no foreground custom painter.
Implementation
set foregroundPainter(CustomPainter value) {
if (_foregroundPainter == value)
return;
final CustomPainter oldPainter = _foregroundPainter;
_foregroundPainter = value;
_didUpdatePainter(_foregroundPainter, oldPainter);
}