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 centerX = size.width * 0.5;
double centerY = size.height * 0.5;
path.addOval(Rect.fromCircle(
center: Offset(size.width * 0.2, centerY),
radius: size.width * 0.2,
));
path.addOval(Rect.fromCircle(
center: Offset(size.width * 0.8, centerY),
radius: size.width * 0.2,
));
path.addOval(Rect.fromCircle(
center: Offset(centerX, centerY),
radius: size.width * 0.3,
));
path.close();
return path;
}