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