@@ -30,10 +30,6 @@ const releaseFlag = 'release';
30
30
const requireBuildWebCompilersFlag = 'build-web-compilers' ;
31
31
const enableExpressionEvaluationFlag = 'enable-expression-evaluation' ;
32
32
const verboseFlag = 'verbose' ;
33
- const nullSafetyFlag = 'null-safety' ;
34
- const nullSafetySound = 'sound' ;
35
- const nullSafetyUnsound = 'unsound' ;
36
- const nullSafetyAuto = 'auto' ;
37
33
const disableDdsFlag = 'disable-dds' ;
38
34
const enableExperimentOption = 'enable-experiment' ;
39
35
const canaryFeaturesFlag = 'canary' ;
@@ -105,7 +101,6 @@ class Configuration {
105
101
final bool ? _enableExpressionEvaluation;
106
102
final bool ? _verbose;
107
103
final bool ? _disableDds;
108
- final String ? _nullSafety;
109
104
final List <String >? _experiments;
110
105
final bool ? _canaryFeatures;
111
106
final bool ? _offline;
@@ -132,7 +127,6 @@ class Configuration {
132
127
bool ? enableExpressionEvaluation,
133
128
bool ? verbose,
134
129
bool ? disableDds,
135
- String ? nullSafety,
136
130
List <String >? experiments,
137
131
bool ? canaryFeatures,
138
132
bool ? offline,
@@ -155,7 +149,6 @@ class Configuration {
155
149
_disableDds = disableDds,
156
150
_enableExpressionEvaluation = enableExpressionEvaluation,
157
151
_verbose = verbose,
158
- _nullSafety = nullSafety,
159
152
_experiments = experiments,
160
153
_canaryFeatures = canaryFeatures,
161
154
_offline = offline {
@@ -231,7 +224,6 @@ class Configuration {
231
224
enableExpressionEvaluation:
232
225
other._enableExpressionEvaluation ?? _enableExpressionEvaluation,
233
226
verbose: other._verbose ?? _verbose,
234
- nullSafety: other._nullSafety ?? _nullSafety,
235
227
experiments: other._experiments ?? _experiments,
236
228
canaryFeatures: other._canaryFeatures ?? _canaryFeatures,
237
229
offline: other._offline ?? _offline);
@@ -278,13 +270,6 @@ class Configuration {
278
270
279
271
bool get verbose => _verbose ?? false ;
280
272
281
- /// Null safety mode:
282
- ///
283
- /// 'sound', 'unsound', or 'auto'.
284
- /// 'auto' indicates that the default `package:build_web_compilers`
285
- /// behavior should be used.
286
- String get nullSafety => _nullSafety ?? 'auto' ;
287
-
288
273
List <String > get experiments => _experiments ?? [];
289
274
290
275
bool get canaryFeatures => _canaryFeatures ?? false ;
@@ -398,10 +383,6 @@ class Configuration {
398
383
? argResults[verboseFlag] as bool ?
399
384
: defaultConfiguration.verbose;
400
385
401
- final nullSafety = argResults.options.contains (nullSafetyFlag)
402
- ? argResults[nullSafetyFlag] as String ?
403
- : defaultConfiguration.nullSafety;
404
-
405
386
final disableDds = argResults.options.contains (disableDdsFlag)
406
387
? argResults[disableDdsFlag] as bool ?
407
388
: defaultConfiguration.disableDds;
@@ -441,7 +422,6 @@ class Configuration {
441
422
disableDds: disableDds,
442
423
enableExpressionEvaluation: enableExpressionEvaluation,
443
424
verbose: verbose,
444
- nullSafety: nullSafety,
445
425
experiments: experiments,
446
426
canaryFeatures: canaryFeatures,
447
427
offline: offline,
0 commit comments