disposeExistingAnimation method

dynamic disposeExistingAnimation()

Implementation

disposeExistingAnimation() {
  if (animator != null) {
    animator!.dispose();
  }
  if (_ticker != null) {
    _ticker!.dispose();
    _ticker = null;
  }
}