delete method

  1. @override
Future<void> delete(
  1. String key
)

Delete the cookie value with the given key in the storage.

Implementation

@override
Future<void> delete(String key) async {
  // Ensure _prefs has been initialized before using it
  _prefs ??= await SharedPreferences.getInstance();

  await _prefs!.remove(_keyPrefix + key);
}