getClip method
Returns a description of the clip given that the render object being clipped is of the given size.
Implementation
@override
Path getClip(Size size) {
// final double xScaling = size.width / 414;
// final double yScaling = size.height / 896;
// Create a rectangle with rounded corners using RRect
final rrect = RRect.fromRectAndRadius(
Rect.fromLTWH(0, 0, size.width, size.height),
Radius.circular(radius!),
);
final path = Path()..addRRect(rrect);
path.close();
return path;
}