validateShape method
void
validateShape()
Validates that the node supports shape capabilities and throws a descriptive error if it doesn't.
Implementation
void validateShape() {
if (!supportsShape) {
throw ArgumentError(
'Node of type ${node.runtimeType} does not support shape capabilities. '
'The node must be a Rectangle, Ellipse, Frame with shape properties, '
'Component, Instance, or Vector with shape properties.',
);
}
}