相关疑难解决方法(0)

如何获取文件类型?

我正在尝试找到一个可以识别文件类型的包。例如

final path = "/some/path/to/file/file.jpg";
Run Code Online (Sandbox Code Playgroud)

应该被识别为图像或

final path = "/some/path/to/file/file.doc";
Run Code Online (Sandbox Code Playgroud)

应该被识别为文件

dart flutter

11
推荐指数
2
解决办法
6394
查看次数

标签 统计

dart ×1

flutter ×1