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();
final width = size.width;
final height = size.height;
path.moveTo(0, height * 0.5);
path.lineTo(0, height * 0.8);
path.quadraticBezierTo(
width * 0.25, height * 0.75, width * 0.5, height * 0.8);
path.quadraticBezierTo(width * 0.75, height * 0.85, width, height * 0.8);
path.lineTo(width, height);
path.close();
return path;
}