Parameters
The image to use as a mask. The alpha channel of this image determines the visibility of the masked view.
Masks this view using the alpha channel of the specified image.
.mask(image: Image): Component;
Rectangle()
.fill(Color("blue"))
.mask(Image("star-mask.png"))
LinearGradient({ colors: [Color("red"), Color("blue")] })
.mask(Text("MASKED").font("largeTitle").bold())
Image("photo.jpg")
.mask(Circle().fill(Color("black")))