deleteAllCookies method
Removes all cookies.
The return value indicates whether any cookies were removed.
Note that it will return always true
for Web, iOS and MacOS platforms.
NOTE for iOS: available from iOS 11.0+.
NOTE for MacOS: available from iOS 10.13+.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - CookieManager.removeAllCookies)
- iOS (Official API - WKWebsiteDataStore.removeData)
- MacOS (Official API - WKWebsiteDataStore.removeData)
- Windows
Implementation
Future<bool> deleteAllCookies() => platform.deleteAllCookies();