deleteReturning method

Future<Row?> deleteReturning(
  1. Insertable<Row> entity
)

Like delete, but returns the deleted row from the database.

If no matching row with the same primary key exists, null is returned.

Implementation

Future<Row?> deleteReturning(Insertable<Row> entity) async {
  _prepareDeleteOne(entity);
  _addReturning();
  return (await _goReturning()).singleOrNull;
}