FigmaShapeAdapter class

An adapter that provides shape capabilities for Figma nodes. This adapter handles basic shapes (Rectangle, Ellipse), frames that can behave as shapes, and components that can behave as shapes.

Mixed-in types

Constructors

FigmaShapeAdapter(Node node)

Properties

cornerRadius BorderRadius?
The corner radius of the shape (if applicable)
no setter
effects List<Effect>?
The visual effects applied to the shape
no setter
fills List<Paint>?
The fill properties of the shape
no setter
hashCode int
The hash code for this object.
no setterinherited
node → Node
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BoxShape
The shape type of the node
no setter
size Size?
The size of the shape
no setter
strokes List<Paint>?
The stroke properties of the shape
no setter
strokeWeight double?
The stroke weight of the shape
no setter
supportsShape bool
Whether the node supports shape capabilities
no setter

Methods

clearCache() → void
inherited
getCached<T>(String key, T compute()) → T
inherited
getCacheId() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateShape() → void
Validates that the node supports shape capabilities and throws a descriptive error if it doesn't.

Operators

operator ==(Object other) bool
The equality operator.
inherited