CustomPaint constructor
const
CustomPaint({
- Key? key,
- CustomPainter? painter,
- CustomPainter? foregroundPainter,
- Size size = Size.zero,
- bool isComplex = false,
- bool willChange = false,
- Widget? child,
Creates a widget that delegates its painting.
Implementation
const CustomPaint(
{super.key,
this.painter,
this.foregroundPainter,
this.size = Size.zero,
this.isComplex = false,
this.willChange = false,
this.child})
: assert(painter != null ||
foregroundPainter != null ||
(!isComplex && !willChange));