@@ -16,6 +16,7 @@ const _knownFeatures = <String, ExperimentalFeature>{
16
16
EnableString .set_literals: ExperimentalFeatures .set_literals,
17
17
EnableString .spread_collections: ExperimentalFeatures .spread_collections,
18
18
EnableString .triple_shift: ExperimentalFeatures .triple_shift,
19
+ EnableString .variance: ExperimentalFeatures .variance,
19
20
20
21
// ignore: deprecated_member_use_from_same_package
21
22
EnableString .bogus_disabled: ExperimentalFeatures .bogus_disabled,
@@ -31,6 +32,7 @@ List<bool> _buildExperimentalFlagsArray() => <bool>[
31
32
true , // set-literals
32
33
true , // spread-collections
33
34
IsEnabledByDefault .triple_shift,
35
+ IsEnabledByDefault .variance,
34
36
false , // bogus-disabled
35
37
true , // bogus-enabled
36
38
];
@@ -59,6 +61,9 @@ class EnableString {
59
61
/// String to enable the experiment "triple-shift"
60
62
static const String triple_shift = 'triple-shift' ;
61
63
64
+ /// String to enable the experiment "variance"
65
+ static const String variance = 'variance' ;
66
+
62
67
/// String to enable the experiment "bogus-disabled"
63
68
@deprecated
64
69
static const String bogus_disabled = 'bogus-disabled' ;
@@ -122,9 +127,12 @@ class ExperimentalFeatures {
122
127
IsExpired .triple_shift,
123
128
'Triple-shift operator' );
124
129
130
+ static const variance = const ExperimentalFeature (7 , EnableString .variance,
131
+ IsEnabledByDefault .variance, IsExpired .variance, 'Sound variance.' );
132
+
125
133
@deprecated
126
134
static const bogus_disabled = const ExperimentalFeature (
127
- 7 ,
135
+ 8 ,
128
136
// ignore: deprecated_member_use_from_same_package
129
137
EnableString .bogus_disabled,
130
138
IsEnabledByDefault .bogus_disabled,
@@ -133,7 +141,7 @@ class ExperimentalFeatures {
133
141
134
142
@deprecated
135
143
static const bogus_enabled = const ExperimentalFeature (
136
- 8 ,
144
+ 9 ,
137
145
// ignore: deprecated_member_use_from_same_package
138
146
EnableString .bogus_enabled,
139
147
IsEnabledByDefault .bogus_enabled,
@@ -166,6 +174,9 @@ class IsEnabledByDefault {
166
174
/// Default state of the experiment "triple-shift"
167
175
static const bool triple_shift = false ;
168
176
177
+ /// Default state of the experiment "variance"
178
+ static const bool variance = false ;
179
+
169
180
/// Default state of the experiment "bogus-disabled"
170
181
@deprecated
171
182
static const bool bogus_disabled = false ;
@@ -200,6 +211,9 @@ class IsExpired {
200
211
/// Expiration status of the experiment "triple-shift"
201
212
static const bool triple_shift = false ;
202
213
214
+ /// Expiration status of the experiment "variance"
215
+ static const bool variance = false ;
216
+
203
217
/// Expiration status of the experiment "bogus-disabled"
204
218
static const bool bogus_disabled = true ;
205
219
@@ -241,5 +255,8 @@ mixin _CurrentState {
241
255
/// Current state for the flag "triple-shift"
242
256
bool get triple_shift => isEnabled (ExperimentalFeatures .triple_shift);
243
257
258
+ /// Current state for the flag "variance"
259
+ bool get variance => isEnabled (ExperimentalFeatures .variance);
260
+
244
261
bool isEnabled (covariant ExperimentalFeature feature);
245
262
}
0 commit comments