DefaultShaderWarmUp constructor Null safety

const DefaultShaderWarmUp(
  1. {double drawCallSpacing,
  2. Size canvasSize}
)

Create an instance of the default shader warm-up logic.

Since this constructor is const, DefaultShaderWarmUp can be used as the default value of parameters.

Implementation

const DefaultShaderWarmUp({
  this.drawCallSpacing = 0.0,
  this.canvasSize = const ui.Size(100.0, 100.0),
});