I am getting the path of an image from the device storage, like this:
path = res[0]?.path;
print("path:"+path);
The output of that print is:
/data/user/0/qplan/cache/image_picker_b432f88b-3146-4a99-9e8b-acbefd066e3a2471538209034937554.jpeg
I need to convert it to File in order to upload the image to Firestore Storage.