ShapeGeometry constructor

ShapeGeometry(
  1. dynamic shapes, {
  2. 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();
}