supportsText property

bool get supportsText

Whether the node supports text capabilities

Implementation

bool get supportsText {
  return node is figma.Text ||
      (node is figma.Instance && _isTextComponent(node as figma.Instance));
}