importSettings method
Import settings from backup
Implementation
Future<void> importSettings(Map<String, String?> settings) async {
try {
for (final entry in settings.entries) {
if (entry.value != null) {
await _storage.write(key: entry.key, value: entry.value!);
}
}
} catch (e) {
// Handle storage errors gracefully
}
}