ShaderMask constructor

const ShaderMask({
  1. Key? key,
  2. required ShaderCallback shaderCallback,
  3. BlendMode blendMode = BlendMode.modulate,
  4. Widget? child,
})

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

Implementation

const ShaderMask({
  super.key,
  required this.shaderCallback,
  this.blendMode = BlendMode.modulate,
  super.child,
});