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 path = Path();
path.moveTo(0, 0);
path.lineTo(size.width, 0);
path.lineTo(size.width, size.height * 0.9);
// Convex curve facing UP with a gentle arc
path.quadraticBezierTo(
size.width * 0.5, // Control point X (center)
size.height * 0.7, // Control point Y (slightly lower = gentler curve)
0, // End point X
size.height * 0.9, // End point Y
);
path.lineTo(0, 0);
return path;
}