RenderCustomPaint constructor
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,
}) : assert(preferredSize != null),
_painter = painter,
_foregroundPainter = foregroundPainter,
_preferredSize = preferredSize,
super(child);