ShapeComponent constructor
ShapeComponent({})
Implementation
ShapeComponent({
super.position,
super.size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
super.key,
Paint? paint,
List<Paint>? paintLayers,
}) {
this.paint = paint ?? this.paint;
// Only read from this.paintLayers if paintLayers not null to prevent
// unnecessary creation of the paintLayers list.
if (paintLayers != null) {
this.paintLayers = paintLayers;
}
}