delete method

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

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

Implementation

@override
Future<void> delete(String key) async {
  final file = File('$_currentDirectory$key');
  if (file.existsSync()) {
    await file.delete(recursive: true);
  }
}