removeValueWithKey method

Future<bool> removeValueWithKey(
  1. String key
)

Remove saved value with Key form local DB.

Implementation

Future<bool> removeValueWithKey(String key) async {
  final value = _preferences?.get(key);
  if (value == null) return true;
  _logger.d("SharedPreferences: [Removing data] -> key: $key, value: $value");
  return _preferences!.remove(key);
}