update method

Future<int> update(
  1. Reaction reaction, {
  2. String table = tableName,
})

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]);
}