How to get file format from imagepicker

After picking image form imagepicker i want to get the file format of the image, how can i do that?

The real file path contain the file name with the dot (for example, /storage/emulated/0/Your image.png)
So just get the name after the dots
But I’m not sure, use Do it to see what the path return