deleteObjectStoreEntries method

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

Delete a range of entries from an object store securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. keyRange Range of entry keys to delete

Implementation

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