deleteSingleIds method
void
deleteSingleIds(
{ - String? id,
})
Implementation
void deleteSingleIds({String? id}) {
ProductContentModel? scannedProduct;
scannedProduct = currentProduct;
scannedProduct.iccidList!.removeWhere((element) => element.iccid == id);
scannedProduct.scannedserialNums!
.removeWhere((element) => element == int.parse(id!));
scannedIccidList.removeWhere((element) => element == id);
ProductContentModel updatedProduct = scannedProduct.copyWith(
iccidList: scannedProduct.iccidList!,
scannedQty: scannedProduct.scannedserialNums!.length,
scannedserialNums: scannedProduct.scannedserialNums);
var temp = productDataScannedList;
int index = temp.indexOf(scannedProduct);
temp[index] = updatedProduct;
productDataScannedList = temp;
}