dart flutter获取文件后缀名
dart flutter获取文件后缀名首先需要引入path包
dart flutter获取文件后缀名详情代码如下:
import 'package:path/path.dart' as p;
var ext=p.extension("main.dart");
print(ext) //输出main.dart后缀名是.dart
dart flutter获取文件后缀名首先需要引入path包
dart flutter获取文件后缀名详情代码如下:
import 'package:path/path.dart' as p;
var ext=p.extension("main.dart");
print(ext) //输出main.dart后缀名是.dart