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.moveTo(size.width, 0);
path.lineTo(0, 0);
path.lineTo(0, size.height);
path.quadraticBezierTo(0, size.height-needSize, needSize, size.height-needSize);
path.lineTo(size.width-needSize, size.height-needSize);
path.quadraticBezierTo(size.width, size.height-needSize, size.width, size.height);
return path;
}