ShapeGeometry constructor
ShapeGeometry(
- dynamic shapes, {
- num curveSegments = 12,
Implementation
ShapeGeometry(shapes, {num curveSegments = 12}) : super() {
type = 'ShapeGeometry';
parameters = {};
this.curveSegments = curveSegments;
if (shapes is List) {
this.shapes = List<Shape>.from(shapes);
} else {
this.shapes = List<Shape>.from([shapes]);
}
init();
}