In my app, there is a feature where users can select multiple images from their device using the image_picker package. After selecting the images, they are displayed in a list. The user can tap on each image to edit it, such as adding text to the image, and then save it to the gallery. However, I’m facing an issue when trying to automatically replace the original image in the list with the edited image and show the updated version to the user. The list stores the selected images in the XFile format.