ShapeEntity constructor

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;
}