ShaderMaskLayer constructor Null safety
Creates a shader mask layer.
The shader
, maskRect
, and blendMode
properties must be non-null
before the compositing phase of the pipeline.
Implementation
ShaderMaskLayer({
Shader? shader,
Rect? maskRect,
BlendMode? blendMode,
}) : _shader = shader,
_maskRect = maskRect,
_blendMode = blendMode;