RenderCustomPaint constructor
- CustomPainter? painter,
- CustomPainter? foregroundPainter,
- Size preferredSize = Size.zero,
- bool isComplex = false,
- bool willChange = false,
- RenderBox? child,
Creates a render object that delegates its painting.
Implementation
RenderCustomPaint({
CustomPainter? painter,
CustomPainter? foregroundPainter,
Size preferredSize = Size.zero,
this.isComplex = false,
this.willChange = false,
RenderBox? child,
}) : _painter = painter,
_foregroundPainter = foregroundPainter,
_preferredSize = preferredSize,
super(child);