onConnectionStateChanged property

  1. @override
Stream<ConnectionState> get onConnectionStateChanged
override

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

@override
Stream<ConnectionState> get onConnectionStateChanged =>
    _connectionStateStreamController.stream;