deleteById method

Future<int> deleteById(
  1. int productId
)

Implementation

Future<int> deleteById(int productId) async {
  return await (db.delete(
    db.product,
  )..where((e) => e.id.equals(productId))).go();
}