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) {
Path path = Path();
path.lineTo(0.0, 0.0);
path.lineTo(0.0, size.height);
if (dy > -20) {
path.quadraticBezierTo((size.width / 2) - 28, size.height - 20,
size.width / 2, size.height - dy - 56);
}
path.lineTo(size.width / 2, size.height - (dy == 0 ? 0 : (dy + 56)));
if (dy > -20) {
path.quadraticBezierTo(
(size.width / 2) + 28, size.height - 20, size.width, size.height);
}
path.lineTo(size.width, size.height);
path.lineTo(size.width, 0);
path.lineTo(0.0, 0.0);
return path;
}