haveKey method

bool haveKey(
  1. String key
)

key信息**********************///

Implementation

bool haveKey(String key) {
  bool haveKey = false;
  if(_storageType == StorageType.HIVE){
    haveKey = _realEncryptBox.containsKey(key);
  }else if(_storageType == StorageType.SP){
    if(_encrypt){
      haveKey = _prefs.containsKey(_realEncrypt.encrypt(key).base64);
    }else{
      haveKey = _prefs.containsKey(key);
    }
  }
  return haveKey;
}