clearAllCache static method
- 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
static Future<void> clearAllCache({bool includeDiskFiles = true}) =>
PlatformInAppWebViewController.static().clearAllCache(
includeDiskFiles: includeDiskFiles,
);