getClip method
- @override
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 = new Path();
var fivePercentOfShapeHeight = ((size.height / 100) * 5);
var fivePercentOfShapeWidth = ((size.width / 100) * 5);
path.moveTo(size.width - fivePercentOfShapeWidth, 0);
path.lineTo(0.0, size.height - fivePercentOfShapeHeight);
path.lineTo(fivePercentOfShapeWidth, size.height);
path.lineTo(size.width, fivePercentOfShapeHeight);
path.close();
return path;
}