mask method
Applies a ShaderMask to the widget.
Implementation
Widget mask(Shader Function(Rect bounds) mask) {
return ShaderMask(
shaderCallback: (Rect bounds) => mask(bounds),
child: this,
);
}
Applies a ShaderMask to the widget.
Widget mask(Shader Function(Rect bounds) mask) {
return ShaderMask(
shaderCallback: (Rect bounds) => mask(bounds),
child: this,
);
}