clearAllCache static method

Future<void> clearAllCache({
  1. 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 native WebView
  • iOS
  • MacOS

Implementation

static Future<void> clearAllCache({bool includeDiskFiles = true}) =>
    PlatformInAppWebViewController.static()
        .clearAllCache(includeDiskFiles: includeDiskFiles);