onNetworkStateChanged property

Stream<NetworkStatus> onNetworkStateChanged

Implementation

Stream<NetworkStatus> get onNetworkStateChanged {
  if(_onNetworkStateChanged == null) {
    _onNetworkStateChanged = _eventChannel.receiveBroadcastStream().map((event) => event.toString()).map(_convertFromState);
  }
  return _onNetworkStateChanged;
}