removeDataFor method
- required Set<
WebsiteDataType> dataTypes, - required List<
WebsiteDataRecord> dataRecords,
Removes website data of the given types for the given data records.
dataTypes represents the website data types that should be removed.
dataRecords represents the website data records to delete website data for.
Officially Supported Platforms/Implementations:
- iOS WKWebView 9.0+ (Official API - WKWebsiteDataStore.removeData)
- Linux WPE WebKit (Official API - webkit_website_data_manager_remove)
- macOS WKWebView (Official API - WKWebsiteDataStore.removeData)
Parameters - Officially Supported Platforms/Implementations:
dataTypes: all platformsdataRecords: all platforms
Use the PlatformWebStorageManager.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> removeDataFor({
required Set<WebsiteDataType> dataTypes,
required List<WebsiteDataRecord> dataRecords,
}) => platform.removeDataFor(dataTypes: dataTypes, dataRecords: dataRecords);