updateRecord method
Implementation
@override
Future<void> updateRecord(
String tableName,
dynamic id,
Map<String, dynamic> data,
) async {
if (!Hive.isBoxOpen(tableName)) {
await Hive.openBox(tableName);
}
final box = Hive.box(tableName);
await box.put(id, data['value']);
}