updateWithOnConflict method
Convenience method for updating rows in the database.
Implementation
Future<int> updateWithOnConflict({
@required final String table,
@required final Map<String, dynamic> values,
final String where,
final List<String> whereArgs,
@required final int conflictAlgorithm,
}) async {
final Map<String, dynamic> request = <String, dynamic>{
'id': id,
'table': table,
'values': values,
'whereClause': where, // note the name mapping
'whereArgs': whereArgs,
'conflictAlgorithm': conflictAlgorithm,
};
return await _channel.invokeMethod('updateWithOnConflict', request);
}