dispose method
void
dispose()
Disposes the controller and cleans up references.
After calling this method, the controller cannot be used anymore. This is automatically called when the Lightning widget is disposed.
Implementation
void dispose() {
_isDisposed = true;
_animationController = null;
_animationControllerReverse = null;
}