onConnectionChanged property
Sets a callback that the communicator will execute whever the connected state changes.
Implementation
@override
set onConnectionChanged(ConnectionChangedCallback onConnectionChanged) =>
_onConnectionChanged = onConnectionChanged;