sqlUpdate method
Update a row in the database table
Implementation
Future<void> sqlUpdate({bool verbose = false}) async {
_checkDbIsReady();
final data = this.toDb();
final row = _toStringsMap(data);
await db!
.update(table: table!.name, row: row, where: 'id=$id', verbose: verbose)
.catchError((dynamic e) =>
throw WriteQueryException("Can not update model into database $e"));
}