setForegroundPainter method

void setForegroundPainter(
  1. CustomPainter? value
)

Updates the foregroundPainter property and triggers a rebuild. This does not rebuild the child widget.

value - The new foregroundPainter.

Implementation

void setForegroundPainter(CustomPainter? value) {
  setState(() {
    foregroundPainter = value;
  });
}