onConnectionChanged property

set onConnectionChanged (Future<void> onConnectionChanged(bool))

A callback that the application may set in order to receive noticies of when the communication's connectivity status changes.

Implementation

set onConnectionChanged(Future<void> Function(bool) onConnectionChanged) =>
    _onConnectionChanged = onConnectionChanged;