shape property
BoxShape
get
shape
The shape type of the node
Implementation
BoxShape get shape {
return getCached("shape", () {
if (node is figma.Ellipse) {
return BoxShape.circle;
}
if (_isSquare && cornerRadius == null) {
return BoxShape.circle;
}
return BoxShape.rectangle;
});
}