remove method

Future<bool> remove(
  1. String key
)

Implementation

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