removeWidgetPosition method
Remove a widget position from the current layout
Implementation
Future<void> removeWidgetPosition(String widgetId) async {
if (_currentLayoutId == null) {
throw Exception('No current layout selected');
}
final layout = _configCache[_currentLayoutId]!;
layout.positions.removeWhere((p) => p.widgetId == widgetId);
layout.lastModified = DateTime.now();
await _saveConfig(layout);
}