dispose method
Disposes the controller and releases resources.
This stops any ongoing animation and cleans up the timer. Always call this method when the controller is no longer needed.
Implementation
@override
void dispose() {
pause();
super.dispose();
}