File image = File("/storage/emulated/0/Android/data/my_app/files/Pictures/image_214.png"); // Replace the path string with any valid path on your device if you want to test it out. out String fileName = file.path.split('/').last;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter