RenderPerformanceOverlay constructor Null safety

RenderPerformanceOverlay(
  1. {int optionsMask = 0,
  2. int rasterizerThreshold = 0,
  3. bool checkerboardRasterCacheImages = false,
  4. bool checkerboardOffscreenLayers = false}
)

Creates a performance overlay render object.

The optionsMask, rasterizerThreshold, checkerboardRasterCacheImages, and checkerboardOffscreenLayers arguments must not be null.

Implementation

RenderPerformanceOverlay({
  int optionsMask = 0,
  int rasterizerThreshold = 0,
  bool checkerboardRasterCacheImages = false,
  bool checkerboardOffscreenLayers = false,
}) : assert(optionsMask != null),
     assert(rasterizerThreshold != null),
     assert(checkerboardRasterCacheImages != null),
     assert(checkerboardOffscreenLayers != null),
     _optionsMask = optionsMask,
     _rasterizerThreshold = rasterizerThreshold,
     _checkerboardRasterCacheImages = checkerboardRasterCacheImages,
     _checkerboardOffscreenLayers = checkerboardOffscreenLayers;