deleteByID method

  1. @override
FutureOr<O?> deleteByID(
  1. dynamic id, {
  2. Transaction? transaction,
})
override

Implementation

@override
FutureOr<O?> deleteByID(dynamic id, {Transaction? transaction}) {
  if (id == null) return null;

  checkNotClosed();

  var o = selectByID(id, transaction: transaction);
  if (o == null) return null;

  remove(o);
  return o;
}