containsKey method
Check if a key exists
Implementation
Future<bool> containsKey(String key) async {
_checkInit();
try {
// Check cache first
if (_cache.containsKey(key)) return true;
return await _withRetry(() async {
return await _secureStorage.containsKey(key: key);
});
} catch (e) {
throw SecureStorageException('Failed to check key existence: $key', e);
}
}