onConnectivityChanged property
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;
}