[flutter_tools] wire up alternative invalidation strategy to features (#70865)
This commit is contained in:
@@ -730,7 +730,8 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
this.isAndroidEnabled = true,
|
||||
this.isIOSEnabled = true,
|
||||
this.isFuchsiaEnabled = false,
|
||||
});
|
||||
this.isExperimentalInvalidationStrategyEnabled = false,
|
||||
});
|
||||
|
||||
@override
|
||||
final bool isLinuxEnabled;
|
||||
@@ -756,6 +757,9 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
@override
|
||||
final bool isFuchsiaEnabled;
|
||||
|
||||
@override
|
||||
final bool isExperimentalInvalidationStrategyEnabled;
|
||||
|
||||
@override
|
||||
bool isEnabled(Feature feature) {
|
||||
switch (feature) {
|
||||
@@ -775,6 +779,8 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
return isIOSEnabled;
|
||||
case flutterFuchsiaFeature:
|
||||
return isFuchsiaEnabled;
|
||||
case experimentalInvalidationStrategy:
|
||||
return isExperimentalInvalidationStrategyEnabled;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user