update method
Update this model in the database.
- If
whereis 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);
}