@@ -25,6 +25,7 @@ final _knownFeatures = <String, ExperimentalFeature>{
2525 ExperimentalFeatures .nonfunction_type_aliases,
2626 EnableString .set_literals: ExperimentalFeatures .set_literals,
2727 EnableString .spread_collections: ExperimentalFeatures .spread_collections,
28+ EnableString .test_experiment: ExperimentalFeatures .test_experiment,
2829 EnableString .triple_shift: ExperimentalFeatures .triple_shift,
2930 EnableString .value_class: ExperimentalFeatures .value_class,
3031 EnableString .variance: ExperimentalFeatures .variance,
@@ -66,6 +67,9 @@ class EnableString {
6667 /// String to enable the experiment "spread-collections"
6768 static const String spread_collections = 'spread-collections' ;
6869
70+ /// String to enable the experiment "test-experiment"
71+ static const String test_experiment = 'test-experiment' ;
72+
6973 /// String to enable the experiment "triple-shift"
7074 static const String triple_shift = 'triple-shift' ;
7175
@@ -190,8 +194,19 @@ class ExperimentalFeatures {
190194 releaseVersion: Version .parse ('2.0.0' ),
191195 );
192196
193- static final triple_shift = ExperimentalFeature (
197+ static final test_experiment = ExperimentalFeature (
194198 index: 11 ,
199+ enableString: EnableString .test_experiment,
200+ isEnabledByDefault: IsEnabledByDefault .test_experiment,
201+ isExpired: IsExpired .test_experiment,
202+ documentation:
203+ 'Has no effect. Can be used for testing the --enable-experiment command line functionality.' ,
204+ experimentalReleaseVersion: null ,
205+ releaseVersion: null ,
206+ );
207+
208+ static final triple_shift = ExperimentalFeature (
209+ index: 12 ,
195210 enableString: EnableString .triple_shift,
196211 isEnabledByDefault: IsEnabledByDefault .triple_shift,
197212 isExpired: IsExpired .triple_shift,
@@ -201,7 +216,7 @@ class ExperimentalFeatures {
201216 );
202217
203218 static final value_class = ExperimentalFeature (
204- index: 12 ,
219+ index: 13 ,
205220 enableString: EnableString .value_class,
206221 isEnabledByDefault: IsEnabledByDefault .value_class,
207222 isExpired: IsExpired .value_class,
@@ -211,7 +226,7 @@ class ExperimentalFeatures {
211226 );
212227
213228 static final variance = ExperimentalFeature (
214- index: 13 ,
229+ index: 14 ,
215230 enableString: EnableString .variance,
216231 isEnabledByDefault: IsEnabledByDefault .variance,
217232 isExpired: IsExpired .variance,
@@ -257,6 +272,9 @@ class IsEnabledByDefault {
257272 /// Default state of the experiment "spread-collections"
258273 static const bool spread_collections = true ;
259274
275+ /// Default state of the experiment "test-experiment"
276+ static const bool test_experiment = false ;
277+
260278 /// Default state of the experiment "triple-shift"
261279 static const bool triple_shift = true ;
262280
@@ -304,6 +322,9 @@ class IsExpired {
304322 /// Expiration status of the experiment "spread-collections"
305323 static const bool spread_collections = true ;
306324
325+ /// Expiration status of the experiment "test-experiment"
326+ static const bool test_experiment = false ;
327+
307328 /// Expiration status of the experiment "triple-shift"
308329 static const bool triple_shift = false ;
309330
@@ -354,6 +375,9 @@ mixin _CurrentState {
354375 bool get spread_collections =>
355376 isEnabled (ExperimentalFeatures .spread_collections);
356377
378+ /// Current state for the flag "test-experiment"
379+ bool get test_experiment => isEnabled (ExperimentalFeatures .test_experiment);
380+
357381 /// Current state for the flag "triple-shift"
358382 bool get triple_shift => isEnabled (ExperimentalFeatures .triple_shift);
359383
0 commit comments