@@ -22,6 +22,7 @@ const _knownFeatures = <String, ExperimentalFeature>{
22
22
EnableString .set_literals: ExperimentalFeatures .set_literals,
23
23
EnableString .spread_collections: ExperimentalFeatures .spread_collections,
24
24
EnableString .triple_shift: ExperimentalFeatures .triple_shift,
25
+ EnableString .value_class: ExperimentalFeatures .value_class,
25
26
EnableString .variance: ExperimentalFeatures .variance,
26
27
};
27
28
@@ -34,6 +35,7 @@ List<bool> _buildExperimentalFlagsArray() => <bool>[
34
35
true , // set-literals
35
36
true , // spread-collections
36
37
IsEnabledByDefault .triple_shift,
38
+ IsEnabledByDefault .value_class,
37
39
IsEnabledByDefault .variance,
38
40
];
39
41
@@ -64,6 +66,9 @@ class EnableString {
64
66
/// String to enable the experiment "triple-shift"
65
67
static const String triple_shift = 'triple-shift' ;
66
68
69
+ /// String to enable the experiment "value-class"
70
+ static const String value_class = 'value-class' ;
71
+
67
72
/// String to enable the experiment "variance"
68
73
static const String variance = 'variance' ;
69
74
}
@@ -141,8 +146,17 @@ class ExperimentalFeatures {
141
146
firstSupportedVersion: null ,
142
147
);
143
148
144
- static const variance = ExperimentalFeature (
149
+ static const value_class = ExperimentalFeature (
145
150
index: 8 ,
151
+ enableString: EnableString .value_class,
152
+ isEnabledByDefault: IsEnabledByDefault .value_class,
153
+ isExpired: IsExpired .value_class,
154
+ documentation: 'Value class' ,
155
+ firstSupportedVersion: null ,
156
+ );
157
+
158
+ static const variance = ExperimentalFeature (
159
+ index: 9 ,
146
160
enableString: EnableString .variance,
147
161
isEnabledByDefault: IsEnabledByDefault .variance,
148
162
isExpired: IsExpired .variance,
@@ -178,6 +192,9 @@ class IsEnabledByDefault {
178
192
/// Default state of the experiment "triple-shift"
179
193
static const bool triple_shift = false ;
180
194
195
+ /// Default state of the experiment "value-class"
196
+ static const bool value_class = false ;
197
+
181
198
/// Default state of the experiment "variance"
182
199
static const bool variance = false ;
183
200
}
@@ -210,6 +227,9 @@ class IsExpired {
210
227
/// Expiration status of the experiment "triple-shift"
211
228
static const bool triple_shift = false ;
212
229
230
+ /// Expiration status of the experiment "value-class"
231
+ static const bool value_class = false ;
232
+
213
233
/// Expiration status of the experiment "variance"
214
234
static const bool variance = false ;
215
235
}
@@ -244,6 +264,9 @@ mixin _CurrentState {
244
264
/// Current state for the flag "triple-shift"
245
265
bool get triple_shift => isEnabled (ExperimentalFeatures .triple_shift);
246
266
267
+ /// Current state for the flag "value-class"
268
+ bool get value_class => isEnabled (ExperimentalFeatures .value_class);
269
+
247
270
/// Current state for the flag "variance"
248
271
bool get variance => isEnabled (ExperimentalFeatures .variance);
249
272
0 commit comments