This Flutter plugin is veny new and unfinished. More to come. The example app do it all.
- Discover the chromecast device with the chromecast button.
- Tap on the device and It will play a video.
- Disconnect.
- If you leave the app, It will remove the callback event and when you resume It put back the event.