validateLayout method
void
validateLayout()
Validates that the node supports layout capabilities and throws a descriptive error if it doesn't.
Implementation
void validateLayout() {
if (!supportsLayout) {
throw ArgumentError(
'Node of type ${node.runtimeType} does not support layout capabilities. '
'The node must be a Frame, Instance, or Group with children.',
);
}
}