ValidateDomainNameAllowNull static method
Implementation
static void ValidateDomainNameAllowNull(
String? domainName, String paramName) {
if (domainName != null) {
RegExp regex = new RegExp(DomainRegex);
if (!regex.hasMatch(domainName)) {
throw new ArgumentException(
"InvalidDomainName($domainName, $paramName)");
}
}
}