ShapeEntity constructor
ShapeEntity({
- ShapeEntity_ShapeType? type,
- ShapeEntity_ShapeArgs? shape,
- ShapeEntity_RectArgs? rect,
- ShapeEntity_EllipseArgs? ellipse,
- ShapeEntity_ShapeStyle? styles,
- Transform? transform,
Implementation
factory ShapeEntity({
ShapeEntity_ShapeType? type,
ShapeEntity_ShapeArgs? shape,
ShapeEntity_RectArgs? rect,
ShapeEntity_EllipseArgs? ellipse,
ShapeEntity_ShapeStyle? styles,
Transform? transform,
}) {
final result = create();
if (type != null) result.type = type;
if (shape != null) result.shape = shape;
if (rect != null) result.rect = rect;
if (ellipse != null) result.ellipse = ellipse;
if (styles != null) result.styles = styles;
if (transform != null) result.transform = transform;
return result;
}