clearObjectStore method

Future<void> clearObjectStore(
  1. String databaseName,
  2. String objectStoreName, {
  3. String? securityOrigin,
  4. String? storageKey,
})

Clears all entries from an object store. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name. objectStoreName Object store name.

Implementation

Future<void> clearObjectStore(String databaseName, String objectStoreName,
    {String? securityOrigin, String? storageKey}) async {
  await _client.send('IndexedDB.clearObjectStore', {
    'databaseName': databaseName,
    'objectStoreName': objectStoreName,
    if (securityOrigin != null) 'securityOrigin': securityOrigin,
    if (storageKey != null) 'storageKey': storageKey,
  });
}