messageSize property Null safety

int messageSize

Gets or sets the size of the variable header + payload section of the message. The size of the variable header + payload.

Implementation

int get messageSize => _messageSize;
void messageSize=(int value)

Implementation

set messageSize(int value) {
  if (value < 0 || value > MqttClientConstants.maxMessageSize) {
    throw InvalidPayloadSizeException(
        value, MqttClientConstants.maxMessageSize);
  }
  _messageSize = value;
}