dispose method Null safety

void dispose()

Cleans up any listeners added by this CurvedAnimation.

Implementation

void dispose() {
  isDisposed = true;
  parent.removeStatusListener(_updateCurveDirection);
}