isConnectionConnecting method

bool isConnectionConnecting(
  1. RelayConnectionKey key
)

checks if the connection identified by key is connecting

Implementation

bool isConnectionConnecting(RelayConnectionKey key) {
  final relay = globalState.relays[key]?.relay;
  return relay != null && relay.connecting;
}