buildControls static method
Widget?
buildControls(
- ComponentType type,
- ThemeableState state,
- VoidCallback onChanged,
- 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);
}