Try updating your pubspec.yaml to set the minimum SDK constraint to 2.12.0 or higher, and running 'pub get
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"