deleteRecord method

  1. @override
Future<void> deleteRecord(
  1. String tableName,
  2. dynamic id
)
override

Implementation

@override
Future<void> deleteRecord(String tableName, dynamic id) async {
  final accessor = collections[tableName];
  if (accessor == null) throw Exception('Collection $tableName not found');
  await isar.writeTxn(() async {
    await accessor.deleteRecord(id);
  });
}