MqttClient constructor Null safety

MqttClient(
  1. String server,
  2. String clientIdentifier
)

Initializes a new instance of the MqttClient class using the default Mqtt Port. The server hostname to connect to The client identifier to use to connect with

Implementation

MqttClient(this.server, this.clientIdentifier) {
  port = MqttClientConstants.defaultMqttPort;
}