[Solved][Flutter] This requires the 'non-nullable' language feature to be enabled. Try updating your pubspec.yaml to set the minimum SDK constraint to 2.12.0 or higher, and running 'pub get'.
Last Updated on 2021-10-15 by Clay
The code after the dart version upgrade needs to enable the so-called Null-Safety to compile. If the code disable Null-Safety, the following error will occur:
Read More »[Solved][Flutter] This requires the 'non-nullable' language feature to be enabled. Try updating your pubspec.yaml to set the minimum SDK constraint to 2.12.0 or higher, and running 'pub get'.