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 = [