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) {
var path = Path();
path.lineTo(0.0, 20);
var firstControlPoint = Offset(size.width / 3.25, 65);
var firstEndPoint = Offset(size.width / 1.75, 40);
path.quadraticBezierTo(firstControlPoint.dx, firstControlPoint.dy,
firstEndPoint.dx, firstEndPoint.dy);
var secondCP = Offset(size.width / 1.25, 0);
var secondEP = Offset(size.width, 30);
path.quadraticBezierTo(
secondCP.dx, secondCP.dy, secondEP.dx, secondEP.dy);
path.lineTo(size.width, size.height);
path.lineTo(0.0, size.height);
path.close();
path.close();
return path;
}