ShapeEntity constructor

ShapeEntity({
  1. ShapeEntityType? type,
  2. ShapeEntity_ShapeArgs? shape,
  3. ShapeEntity_RectArgs? rect,
  4. ShapeEntity_EllipseArgs? ellipse,
  5. ShapeEntity_ShapeStyle? styles,
  6. Transform? transform,
})

Implementation

factory ShapeEntity({
  ShapeEntityType? 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;
}