update method
Implementation
Future<int> update(Reaction reaction, {String table = tableName}) async {
if (db == null) {
await open();
}
if (db == null) {
return Future.value(0);
}
return await db!.update(table, reaction.toMap(),
where: '$columnId = ?', whereArgs: [reaction.id]);
}