secureContainsKey method

Future<bool> secureContainsKey(
  1. String key
)

Check if key exists in secure storage

Implementation

Future<bool> secureContainsKey(String key) async {
  try {
    final result = await methodChannel
        .invokeMethod<bool>('secureContainsKey', {'key': key});
    return result ?? false;
  } on PlatformException catch (e) {
    throw MCPSecureStorageException(
        'Failed to check secure key: ${e.message}', e.details);
  }
}