I am displaying couple of images on first page using Image.asset . Idea is, when I click on one image, I should be able get the image name, so that I can send to next page and display the image with its detail. I am getting image in AssetImage format like
AssetImage(bundle: null, name: "images/image1.png")
How can I just extract the name?