deleteObjectStoreEntries method

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

Delete a range of entries from an object store securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin. storageKey Storage key. storageBucket Storage bucket. If not specified, it uses the default bucket. keyRange Range of entry keys to delete

Implementation

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