buildControlsWidget method
Build controls widget accepting ThemeableState base type. This method handles the generic type cast internally, eliminating the need for dynamic casts in the registry.
Implementation
Widget buildControlsWidget(ThemeableState state, VoidCallback onChanged, bool isDarkMode) {
return controlsBuilder(state as T, onChanged, isDarkMode);
}