Path getClip(Size size) {
double gap = 25.0;
var path = Path();
path.moveTo(gap, 0); //top left
path.lineTo(0, size.width-gap);//top right
path.lineTo(size.width, size.height);// bottom right
path.lineTo(0, size.height);//bottom left
path.lineTo(gap, 0);//connect the top left
return path;
}
2
Answers
Firstly moving the current path.
Screenshot