ShaderMask constructor

const ShaderMask({Key key, @required ShaderCallback shaderCallback, BlendMode blendMode: BlendMode.modulate, Widget child })

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

The shaderCallback and blendMode arguments must not be null.


const ShaderMask({
  Key key,
  @required this.shaderCallback,
  this.blendMode = BlendMode.modulate,
  Widget child,
}) : assert(shaderCallback != null),
     assert(blendMode != null),
     super(key: key, child: child);