shouldReclip method

  1. @override
bool shouldReclip(
  1. covariant CircularNotchedAndCorneredRectangleClipper oldClipper
)
override

The shouldReclip method is called when a new instance of the class is provided, to check if the new instance actually represents different information.

Implementation

@override
bool shouldReclip(CircularNotchedAndCorneredRectangleClipper oldClipper) {
  return oldClipper.geometry != geometry ||
      oldClipper.shape != shape ||
      oldClipper.notchMargin != notchMargin;
}