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) {
switch (edge) {
case Edge.TOP:
return _getTopPath(size);
case Edge.RIGHT:
return _getRightPath(size);
case Edge.BOTTOM:
return _getBottomPath(size);
case Edge.LEFT:
return _getLeftPath(size);
default:
return _getRightPath(size);
}
}