updatePickupShippingMethod method

void updatePickupShippingMethod()

Implementation

void updatePickupShippingMethod() async {
  selectedDeliveryAddress.value =
      getPickUpAddressString(pickupLocationListContent[0].profile?.address);

  pickupSelectedAddress.value = pickupLocationListContent[0].profile!;

  isPickupMethodSelected.value = true;

  isDeliveryMethodSelected.value = false;
  isDeliverySelected.value = true;

  selectedDeliveryName.value = "pickup";
  isPickupSelected.value =
      pickupLocationListContent[0].profile?.partnerId ?? '';
  selectedDeliveryId.value = isPickupSelected.value;
  selectedDeliveryPrice.value = 0.0;
  AddToCartSellInRequest request = await prepareSellInCartRequest();
  await addToCartInSellIn(
    Get.context!,
    cart_id.value,
    request,
  );
}