flush method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CookieManager.flush', apiUrl: 'https://developer.android.com/reference/android/webkit/CookieManager#flush()')])
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

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'CookieManager.flush',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/CookieManager#flush()',
    ),
  ],
)
Future<void> flush() {
  throw UnimplementedError(
    'flush is not implemented on the current platform',
  );
}