AuthMethodId constructor

AuthMethodId(
  1. String value
)

Validates and creates a AuthMethodId value.

Implementation

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