When you first created your Flutter apps, the flutter SDK will generate a template folder structure for you. To enable null safety, you must go to your pubspec. yaml file and then navigates to the environment tag . You’ll see that under the tag, there is an SDK tag version.