We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f1fb1b commit 8b80552Copy full SHA for 8b80552
packages/flutter_tools/lib/src/runner/flutter_command.dart
@@ -1089,7 +1089,8 @@ abstract class FlutterCommand extends Command<void> {
1089
);
1090
// Extra frontend options are only provided if explicitly
1091
// requested.
1092
- if (languageVersion.major >= nullSafeVersion.major && languageVersion.minor >= nullSafeVersion.minor) {
+ if ((languageVersion.major > nullSafeVersion.major) ||
1093
+ (languageVersion.major == nullSafeVersion.major && languageVersion.minor >= nullSafeVersion.minor)) {
1094
nullSafetyMode = NullSafetyMode.sound;
1095
} else {
1096
nullSafetyMode = NullSafetyMode.unsound;
0 commit comments