fix precedence issue (#31486)

This commit is contained in:
Alexandre Ardhuin 2019-04-23 22:31:41 +02:00 committed by GitHub
parent 661e0350fb
commit 364726aca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,9 +391,9 @@ class GalleryOptionsPage extends StatelessWidget {
List<Widget> _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 <Widget>[];
final List<Widget> items = <Widget>[