升级一个老项目,用的是flutter,升级完了一直报错:
/C:/Users/***/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' has
fewer named arguments than those of overridden method 'File.create'.
Future<File> create({bool recursive = false});
原因:File版本太低,在pubspec.yaml指定 file: ^6.1.4 即可
标签:file,错误,create,升级,File,6.1,Flutter From: https://www.cnblogs.com/ego/p/17311388.html