getClip method

  1. @override
Path getClip(
  1. Size size
)
override

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));
}