PerformanceOverlay.allEnabled constructor Null safety

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

Create a performance overlay that displays all available statistics.

Implementation

PerformanceOverlay.allEnabled({
  Key? 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,
    super(key: key);