getValue method

String? getValue(
  1. String key
)

Fonction permettant d'obtenir la valeur d'une clé du SecureStorage

Implementation

String? getValue(String key){
  if (_secureStorageReadStatus && _secureStorageStatus){
    if (_data.containsKey(key)) {
      return _data[key]!;
    } else {
      return null;
    }
  }
  else{
    throw Exception("SecureStorage function called when no secure storage was set");
  }
}