removeListener method Null safety

  1. @override
void removeListener(
  1. VoidCallback listener
)
override

Remove a previously registered closure from the list of closures that the object notifies when it is time to reclip.

The CustomClipper implementation merely forwards to the same method on the Listenable provided to the constructor in the reclip argument, if it was not null.

Implementation

@override
void removeListener(VoidCallback listener) => _reclip?.removeListener(listener);