clearCache method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform()])
  2. @Deprecated("Use InAppWebViewController.clearAllCache instead")
Future<void> clearCache()

Use PlatformInAppWebViewController.clearAllCache instead

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView

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

Implementation

@SupportedPlatforms(
  platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform()],
)
@Deprecated("Use InAppWebViewController.clearAllCache instead")
Future<void> clearCache() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.clearCache.name} is not implemented on the current platform',
  );
}