containsKey method

Future<bool> containsKey(
  1. String key
)

Returns true if key exists in the secure store.

Implementation

Future<bool> containsKey(String key) async {
  try {
    return await _storage.containsKey(key: key);
  } catch (e, st) {
    throw StorageException(
      message: 'Failed to check key existence',
      key: key,
      cause: e,
      stackTrace: st,
    );
  }
}