根据路径获取文件名
static String getNameFromFilePath(String? path){ if(path == null){ return ''; } return path.substring(path.lastIndexOf('/') + 1); }