From d295fbb6a1216124b0abcecce220e029eadfb204 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 19 Feb 2020 22:26:05 +0100 Subject: [PATCH] Add highContrast to FakeAccessibilityFeatures test (#48486) --- packages/flutter_test/test/window_test.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; + } }