获取路径的文件名不包含后缀名 使用示例 void example() { PPath.filenameWithoutExt('documents/dir1/file.txt'); } 返回:file
static String filenameWithoutExt(String path) { return dart_path.basenameWithoutExtension(path); }