onConnectivityChanged property

  1. @override
Stream<List<ConnectivityResult>> onConnectivityChanged
override

Returns a Stream of ConnectivityResults changes.

Implementation

@override
Stream<List<ConnectivityResult>> get onConnectivityChanged {
  _controller ??= StreamController<List<ConnectivityResult>>.broadcast(
    onListen: _startListenConnectivity,
    onCancel: _stopListenConnectivity,
  );
  return _controller!.stream;
}