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 rect = Rect.fromLTWH(0, 0, size.width, size.height);
path.addOval(Rect.fromLTWH(0, 0, rect.width, rect.height * 0.9));
final knotBaseY = rect.height * 0.88;
path.moveTo(rect.width * 0.45, knotBaseY);
path.lineTo(rect.width * 0.55, knotBaseY);
path.lineTo(rect.width * 0.5, rect.height);
path.close();
return path;
}