deleteReturning method

Future<D?> deleteReturning(
  1. Insertable<D> 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<D?> deleteReturning(Insertable<D> entity) async {
  _prepareDeleteOne(entity);
  writeReturningClause = true;
  return (await _goReturning()).singleOrNull;
}