validateBar method

void validateBar()

Validates that the node supports bar capabilities

Implementation

void validateBar() {
  if (!supportsBar) {
    final barTypeName = barType == FigmaBarType.top ? 'AppBar' : 'BottomBar';
    throw ArgumentError(
      'Node of type ${node.runtimeType} does not support $barTypeName capabilities. '
      'The node must be a Frame or Instance with horizontal layout and fixed height.',
    );
  }
}