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