From 364726aca1296ad6de80f4a12bc9ec9597c0cfad Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Tue, 23 Apr 2019 22:31:41 +0200 Subject: [PATCH] fix precedence issue (#31486) --- examples/flutter_gallery/lib/gallery/options.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/flutter_gallery/lib/gallery/options.dart b/examples/flutter_gallery/lib/gallery/options.dart index c9aadb3049..fb1bb2fa4b 100644 --- a/examples/flutter_gallery/lib/gallery/options.dart +++ b/examples/flutter_gallery/lib/gallery/options.dart @@ -391,9 +391,9 @@ class GalleryOptionsPage extends StatelessWidget { List _enabledDiagnosticItems() { // Boolean showFoo options with a value of null: don't display // the showFoo option at all. - if (null == options.showOffscreenLayersCheckerboard - ?? options.showRasterCacheImagesCheckerboard - ?? options.showPerformanceOverlay) + if (options.showOffscreenLayersCheckerboard == null && + options.showRasterCacheImagesCheckerboard == null && + options.showPerformanceOverlay == null) return const []; final List items = [