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();
double x = hideLines ? 2 : 0;
path.moveTo(x, x);
path.lineTo(x, size.height - x);
path.lineTo(size.width - x, size.height - x);
path.lineTo(size.width - x, x);
path.close();
return path;
}