supportsShape property

bool get supportsShape

Whether the node supports shape capabilities

Implementation

bool get supportsShape {
  return getCached("supportsShape", () {
    return node is figma.Rectangle ||
        node is figma.Ellipse ||
        node is figma.Instance ||
        node is figma.Frame ||
        (node is figma.Vector && _hasShapeProperties(node as figma.Vector));
  });
}