updateDeliveryShippingMethod method

Future<void> updateDeliveryShippingMethod()

Implementation

Future<void> updateDeliveryShippingMethod() async {
  selectedDeliveryAddressForPickUp.value =
      getPickUpAddressString(pickupLocationListContent[0].profile?.address);
  isDeliverySelected.value = true;

  selectedDeliveryNameForPickUp.value = localization.translate("pickup");

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