FlutterUnit
FlutterUnit copied to clipboard
+ 0018 ... 操作符 This requires the 'spread-collections' experiment to be enabled.
This requires the 'spread-collections' experiment to be enabled.
... 操作符
至少需要dart 2.3.0
- 解决方法
pubspec.yaml 文件中
environment:
sdk: ">=2.3.0 <3.0.0"
1,查提示错误关键词 2,尝试新建一个项目发现并没有报错,对比新老项目发现 environment的sdk 版本不一致