dispose method

void dispose()

Disposes of the animation controller and resources. Should be called when the animation is no longer needed.

Implementation

void dispose() {
  if (!_disposed) {
    controller.dispose();
    _disposed = true;
  }
}