clearAllCache method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), LinuxPlatform()])
- bool includeDiskFiles = true,
Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used.
includeDiskFiles if false, only the RAM cache is cleared. The default value is true.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
includeDiskFiles: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
LinuxPlatform(),
],
)
Future<void> clearAllCache({bool includeDiskFiles = true}) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.clearAllCache.name} is not implemented on the current platform',
);
}