clear method

Future<void> clear()

Implementation

Future<void> clear() async {
  _cookies.clear();
  final file = _file;
  if (file != null && file.existsSync()) {
    await file.writeAsString("", mode: FileMode.write, flush: true);
  }
}