deleteAll method
Delete All in Box<T>
Implementation
Future<bool> deleteAll() async {
final list = <JsonRecord>[];
for (var rec in _indexedDB.allActiveRecordList) {
if (rec.type != RecordType.json) continue;
final jRec = rec as JsonRecord;
// filter field id
if (jRec.adapterTypeId != _adapter.getUniqueFieldId) continue;
list.add(jRec);
}
return await _indexedDB.db.removeMultiRecord(list);
}