checkProductIsAlreadyAdded method

CollectStockCardModel? checkProductIsAlreadyAdded(
  1. String? materialCode
)

Implementation

CollectStockCardModel? checkProductIsAlreadyAdded(String? materialCode) {
  CollectStockCardModel? value;
  for (final data in scannedProducts) {
    if (data.materialCode == materialCode) {
      value = data;
      break;
    }
  }
  return value;
}