diff --git a/packages/flutter_test/test/window_test.dart b/packages/flutter_test/test/window_test.dart index 92dbbe6242..396ce1f8a4 100644 --- a/packages/flutter_test/test/window_test.dart +++ b/packages/flutter_test/test/window_test.dart @@ -256,6 +256,7 @@ class FakeAccessibilityFeatures implements AccessibilityFeatures { this.disableAnimations = false, this.boldText = false, this.reduceMotion = false, + this.highContrast = false, }); @override @@ -272,4 +273,14 @@ class FakeAccessibilityFeatures implements AccessibilityFeatures { @override final bool reduceMotion; + + final bool highContrast; + + /// This gives us some grace time when the dart:ui side adds something to + /// [AccessibilityFeatures], and makes things easier when we do rolls to + /// give us time to catch up. + @override + dynamic noSuchMethod(Invocation invocation) { + return null; + } }