getValidConnectivityState function

ConnectivityState getValidConnectivityState(
  1. ConnectivityState candidateState
)

Implementation

ConnectivityState getValidConnectivityState(ConnectivityState candidateState) =>
    _kValidStatuses.contains(candidateState.status)
        ? candidateState
        : _kStates.disconnected;