我希望对Dart中的变量使用类型防御,因此我尝试将最小省道版本更新为2.14.0。当我将环境更改为 sdk: ">=2.14.0 <3.0.0"[project] flutter pub get
Running "flutter pubThe current Dart SDK version is 2.14.0-377.0.dev.>=,并且它不满足条件>=2.14.0,那么我搞不懂它是什么</e
我不知道这是不是在我切换到Flutter的beta频道之前发生的,但我不明白为什么这是一个错误。列表是可迭代的,对吧?我采用了official docs中的示例。Try changing the type of the variable, or casting the right-hand type to 'Iterable<int>'. dart(invalid_assignment