clearCookies method

  1. @override
Future<bool> clearCookies()

Clears all cookies for all WebView instances.

Returns true if cookies were present before clearing, else false.

Implementation

@override
Future<bool> clearCookies() async {
  return websiteDataStore.removeDataOfTypes(
    <WKWebsiteDataType>{WKWebsiteDataType.cookies},
    DateTime.fromMillisecondsSinceEpoch(0),
  );
}