deleteCustomer method

Future<int> deleteCustomer(
  1. int id
)

Implementation

Future<int> deleteCustomer(int id) async {
  final db = await instance.database;
  return await db.delete(
    'customers',
    where: 'id = ?',
    whereArgs: [id],
  );
}