writeSecureData static method
Write encrypted value to storage
Implementation
static Future<void> writeSecureData(String key, String value) async {
try {
final encryptedValue = _encrypt(value);
// ConditionalLogs().customLog(
// "writeSecureData \n key :$key \n value :$value \n encryptedValue: $encryptedValue",
// );
await _getStorage.write(key, encryptedValue);
} catch (e) {
ConditionalLogs().customLog("error on writeSecureData $e");
}
}