deleteItem method Null safety

Future<int> deleteItem(
  1. String table,
  2. String id
)

Deletes an item from the database table with id indicated

Implementation

Future<int> deleteItem(String table, String id) async {
  return await db.delete(table, where: 'id = ?', whereArgs: [id]);
}