📅  最后修改于: 2022-03-11 14:59:40.735000             🧑  作者: Mango
Null safety is no longer an experiment as of Dart 2.12. It is now easy to enable.
Enabling null safety:
Starting with the first Dart 2.12 versions, types will be non-nullable by default.
So you just need to change your SDK constraint:
environment:
sdk: ">=2.12.0 <3.0.0"