flush method

Future<void> flush()

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:

Use the PlatformCookieManager.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> flush() => platform.flush();