disposeExistingAnimation method

dynamic disposeExistingAnimation()

Implementation

disposeExistingAnimation() {
  if (animatorA != null) {
    animatorA!.dispose();
  }
  if (animatorB != null) {
    animatorB!.dispose();
  }
  if (_tickers.length > 0) {
    _tickers.forEach((ticker) => ticker.dispose());
    _tickers.clear();
  }
}