onConnectedChanged property

Stream<bool> onConnectedChanged

Returns the stream that will fire with a true when connectivity is restored and false when connectivity is lost.

Implementation

Stream<bool> get onConnectedChanged => _connectedStreamController!.stream;