containsKey method

Future<bool> containsKey(
  1. String key
)

Implementation

Future<bool> containsKey(String key) async {
  if (_config.type == StorageType.sharedPreferences) {
    final encKey = _encryptKey(key);
    return _prefs!.containsKey(encKey);
  } else {
    return _hiveBox!.containsKey(key);
  }
}