onConnectionStateChanged property

Stream<ConnectionState> onConnectionStateChanged

Stream of connection state changes

This returns a broadcast stream that can be listened to for connection changes. Note: on web channels, this will not yield any values.

Implementation

Stream<ConnectionState> get onConnectionStateChanged;