removeRecordById method
- int id
Remove Record By Id
Implementation
Future<bool> removeRecordById(int id) async {
final index = _indexedDB.allActiveRecordList.indexWhere((e) => e.id == id);
if (index == -1) {
throw Exception('Not Found ID:`$id` In indexedDB.allActiveRecordList');
}
final res = await _indexedDB.db.removeRecord(
_indexedDB.allActiveRecordList[index],
);
return res;
}