Dispose the video controller and free resources
@override Future<void> dispose() async { // Your custom disposal logic here _isInitialized = false; _isPlaying = false; }