Skip to main content
.clipShape(shape: Shape): Component;

Parameters

shape
Shape
The shape to clip the view to. Can be any shape component like Circle, Rectangle, RoundedRectangle, etc.

Support

Usage

Circular clipping

Image("profile.jpg")
    .clipShape(Circle())