validateMinLength static method

void validateMinLength(
  1. Topic topicInstance
)

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

Implementation

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