deleteLayoutConfig method
Delete a layout configuration
Implementation
@override
Future<bool> deleteLayoutConfig(String id) async {
await _ensureInitialized();
// Remove the config
final result = await _prefs.remove('$_layoutConfigPrefix$id');
// Update the list of all config IDs
Set<String> allIds = Set.from(_prefs.getStringList(_allConfigIdsKey) ?? []);
allIds.remove(id);
await _prefs.setStringList(_allConfigIdsKey, allIds.toList());
return result;
}