saveConfig method
Saves widget configuration to App Group container.
config is the configuration map to save.
Implementation
Future<void> saveConfig(Map<String, dynamic> config) async {
try {
await _methodChannel.invokeMethod('saveConfig', {
'config': config,
});
} catch (e) {
throw Exception('Failed to save config: $e');
}
}