MessageId constructor

MessageId(
  1. String value
)

Validates and creates a MessageId value.

Implementation

factory MessageId(String value) {
  if (value.isEmpty) {
    throw const FormatException('Protocol identifiers must not be empty');
  }
  return MessageId._(value);
}