update method
Convenience method for updating rows in the database. Returns the number of changes made
Update table
with values
, a map from column names to new column values. null is a valid value that will be translated to NULL.
Implementation
@override
Future<int> update(Table table, Map<String, Object?> values, Query query) async {
final count = await _db!.update(table.name, values, where: query.whereStringOrNull(), whereArgs: query.valuesOrNull);
_tableChangeController.add(table);
_updateController.add((table, query, values));
return count;
}