Support disabling animations in the CLI (#132239)
This commit is contained in:
@@ -448,6 +448,7 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
this.isFuchsiaEnabled = false,
|
||||
this.areCustomDevicesEnabled = false,
|
||||
this.isFlutterWebWasmEnabled = false,
|
||||
this.isCliAnimationEnabled = true,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -477,6 +478,9 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
@override
|
||||
final bool isFlutterWebWasmEnabled;
|
||||
|
||||
@override
|
||||
final bool isCliAnimationEnabled;
|
||||
|
||||
@override
|
||||
bool isEnabled(Feature feature) {
|
||||
switch (feature) {
|
||||
@@ -496,6 +500,8 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
return isFuchsiaEnabled;
|
||||
case flutterCustomDevicesFeature:
|
||||
return areCustomDevicesEnabled;
|
||||
case cliAnimation:
|
||||
return isCliAnimationEnabled;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user