connectionState property

  1. @Deprecated('Use ConnectionStatus, not this')
MqttConnectionState? connectionState

Gets the current connection state of the Mqtt Client. Will be removed, use connectionStatus

Implementation

@Deprecated('Use ConnectionStatus, not this')
MqttConnectionState? get connectionState => connectionHandler != null
    ? connectionHandler!.connectionStatus.state
    : MqttConnectionState.disconnected;