addUTF8String method Null safety

MqttClientPayloadBuilder addUTF8String(
  1. String val
)

Add a UTF8 string

Implementation

MqttClientPayloadBuilder addUTF8String(String val) {
  const encoder = Utf8Encoder();
  _payload!.addAll(encoder.convert(val));
  return this;
}