update method

Future<int> update ({@required String table, @required Map<String, dynamic> values, String where, List<String> whereArgs })

Convenience method for updating rows in the database.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#update(java.lang.String,%20android.content.ContentValues,%20java.lang.String,%20java.lang.String[])


Future<int> update({
  @required final String table,
  @required final Map<String, dynamic> values,
  final String where,
  final List<String> whereArgs,
}) async {
  final Map<String, dynamic> request = <String, dynamic>{
    'id': id,
    'table': table,
    'values': values,
    'whereClause': where, // note the name mapping
    'whereArgs': whereArgs,
  return (await _channel.invokeMethod('update', request)) as int;