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