📜  颤振获取文件名 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:50.958000             🧑  作者: Mango

代码示例3
File file = new File("/storage/emulated/0/Android/data/my_app/files/Pictures/ca04f332.png"); 
String fileName = file.path.split('/').last;

print(fileName);