filenameWithoutExt static method

String filenameWithoutExt(
  1. String path
)

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

Implementation

static String filenameWithoutExt(String path) {
  return dart_path.basenameWithoutExtension(path);
}