validateMinLength static method

void validateMinLength(
  1. MqttTopic topicInstance
)

Validates that the topic does not fall below the minimum length. topicInstance - The instance to check.

Implementation

static void validateMinLength(MqttTopic topicInstance) {
  if (topicInstance.rawTopic!.isEmpty) {
    throw Exception(
        'mqtt_client::Topic: rawTopic must contain at least one character');
  }
}