updateWithField method

Future<int> updateWithField(
  1. dynamic map,
  2. String channelID,
  3. int channelType
)

Implementation

Future<int> updateWithField(
    dynamic map, String channelID, int channelType) async {
  if (WKDBHelper.shared.getDB() == null) {
    return 0;
  }
  return await WKDBHelper.shared.getDB()!.update(
      WKDBConst.tableConversation, map,
      where: "channel_id=? and channel_type=?",
      whereArgs: [channelID, channelType]);
}