saveConfig method

Future<void> saveConfig(
  1. Map<String, dynamic> config
)

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');
  }
}