validateVector method
void
validateVector()
Validates that the node supports vector capabilities and throws a descriptive error if it doesn't.
Implementation
void validateVector() {
if (!supportsVector) {
throw ArgumentError(
'Node of type ${node.runtimeType} does not support vector capabilities. '
'The node must be a Vector.',
);
}
}