ShaderMaskLayer constructor

ShaderMaskLayer({
  1. Shader? shader,
  2. Rect? maskRect,
  3. BlendMode? blendMode,
})

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;