deleteAll method
Implementation
Future<void> deleteAll(List<String> keys, [Transaction? txn]) async {
if (boxCollection._txnCache != null) {
boxCollection._txnCache!.add((txn) => deleteAll(keys, txn));
keys.forEach(_cache.remove);
_cachedKeys?.removeAll(keys);
return;
}
txn ??= boxCollection._db.transaction(name, 'readwrite');
final store = txn.objectStore(name);
for (final key in keys) {
await store.delete(key);
_cache.remove(key);
_cachedKeys?.removeAll(keys);
}
return;
}