deleteItem method Null safety
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]);
}
Deletes an item from the database table
with id
indicated
Future<int> deleteItem(String table, String id) async {
return await db.delete(table, where: 'id = ?', whereArgs: [id]);
}