isConnecting method

  1. @override
bool isConnecting()
override

Implementation

@override
bool isConnecting() {
  if (_client != null && _client!.connectionStatus != null) {
    return _client!.connectionStatus!.state == MqttConnectionState.connecting;
  }
  return false;
}