onConnectionChanged property

  1. @override
void onConnectionChanged=(ConnectionChangedCallback onConnectionChanged)

Sets a callback that the communicator will execute whever the connected state changes.

Implementation

@override
set onConnectionChanged(ConnectionChangedCallback onConnectionChanged) =>
    _onConnectionChanged = onConnectionChanged;