PerformanceOverlay.allEnabled constructor Null safety

PerformanceOverlay.allEnabled(
  1. {Key? key,
  2. int rasterizerThreshold = 0,
  3. bool checkerboardRasterCacheImages = false,
  4. bool checkerboardOffscreenLayers = false}
)

Create a performance overlay that displays all available statistics.

Implementation

PerformanceOverlay.allEnabled({
  super.key,
  this.rasterizerThreshold = 0,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
}) : optionsMask =
      1 << PerformanceOverlayOption.displayRasterizerStatistics.index |
      1 << PerformanceOverlayOption.visualizeRasterizerStatistics.index |
      1 << PerformanceOverlayOption.displayEngineStatistics.index |
      1 << PerformanceOverlayOption.visualizeEngineStatistics.index;