update method

Future<int> update({
  1. String? where,
  2. List? params,
})

Update this model in the database.

  • If where is provided, it updates those rows.
  • Otherwise, you should provide a primary key in toMap().

Implementation

Future<int> update({String? where, List<dynamic>? params}) async
{
  return await dbService.update(table, toMap(), where: where, params: params);
}