hasConnectedSession property
Tests if a session is currently being managed by this session manager, and it is currently connected. This will be YES if the session state is ConnectionStateConnected.
Implementation
@override
bool get hasConnectedSession =>
_currentSessionStreamController.value?.connectionState ==
GoogleCastConnectState.ConnectionStateConnected;