ShaderMaskModifier constructor
const
ShaderMaskModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required ShaderCallback shaderCallback,
- BlendMode blendMode = BlendMode.modulate,
Creates a widget that applies a mask generated by a Shader to its child.
The shaderCallback
and blendMode
arguments must not be null.
Implementation
const ShaderMaskModifier({
super.key,
super.child,
super.modifierKey,
required this.shaderCallback,
this.blendMode = BlendMode.modulate,
});