RenderShaderMask constructor

RenderShaderMask({
  1. RenderBox? child,
  2. required ShaderCallback shaderCallback,
  3. BlendMode blendMode = BlendMode.modulate,
})

Creates a render object that applies a mask generated by a Shader to its child.

Implementation

RenderShaderMask({
  RenderBox? child,
  required ShaderCallback shaderCallback,
  BlendMode blendMode = BlendMode.modulate,
}) : _shaderCallback = shaderCallback,
     _blendMode = blendMode,
     super(child);