shape property

BoxShape get shape

The shape type of the node

Implementation

BoxShape get shape {
  if (node is figma.Ellipse) {
    return BoxShape.circle;
  }
  return BoxShape.rectangle;
}