clearAllCache method

  1. @override
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

@override
Future<void> clearAllCache({bool includeDiskFiles = true}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('includeDiskFiles', () => includeDiskFiles);
  await _staticChannel.invokeMethod('clearAllCache', args);
}