removeItem method

  1. @override
Future<void> removeItem({
  1. required String key,
})
override

Implementation

@override
Future<void> removeItem({required String key}) async {
  final SharedPreferences prefs = await _prefs;
  final String storageKey = _getStorageKey(key);
  await prefs.remove(storageKey);
}