putString method
Implementation
Future<bool> putString(String key, String value) async {
if (_config.type == StorageType.sharedPreferences) {
final encKey = _encryptKey(key);
final encValue = _encryptValue(value);
return await _prefs!.setString(encKey, encValue);
} else {
await _hiveBox!.put(key, value);
return true;
}
}