removeDataFor method

Future<void> removeDataFor({
  1. required Set<WebsiteDataType> dataTypes,
  2. 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:

Parameters - Officially Supported Platforms/Implementations:

  • dataTypes: all platforms
  • dataRecords: 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);