buildControls static method

Widget? buildControls(
  1. ComponentType type,
  2. ThemeableState state,
  3. VoidCallback onChanged,
  4. bool isDarkMode,
)

Build a controls widget for a component, handling type casting internally. Returns null if the component type is not registered.

Implementation

static Widget? buildControls(
  ComponentType type,
  ThemeableState state,
  VoidCallback onChanged,
  bool isDarkMode,
) {
  final definition = _components[type];
  if (definition == null) return null;
  // Use wrapper method that handles generic type cast internally
  return definition.buildControlsWidget(state, onChanged, isDarkMode);
}