flush method
Ensures all cookies currently accessible through the getCookie API are written to persistent storage. This call will block the caller until it is done and may perform I/O.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - CookieManager.flush)
Use the PlatformCookieManager.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> flush() => platform.flush();