SessionId constructor

SessionId(
  1. String value
)

Validates and creates a SessionId value.

Implementation

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