getClip method
The getClip method is called whenever the custom clip needs to be updated.
Implementation
@override
Path getClip(Size size) {
final Rect? button = geometry.value.floatingActionButtonArea?.translate(
0.0,
geometry.value.bottomNavigationBarTop! * -1.0,
);
return shape.getOuterPath(Offset.zero & size, button?.inflate(notchMargin));
}