getClip method
- Size size
override
Create a new path using the parameters provided in the constructor.
Implementation
@override
Path getClip(Size size) {
return Path()
..moveTo(left, top)
..lineTo(size.width - right, top)
..lineTo(size.width - right, size.height - bottom)
..lineTo(left, size.height - bottom)
..close();
}