tokenDomain static method

String? tokenDomain(
  1. String? value
)

Implementation

static String? tokenDomain(String? value) {
  if (value != null) {
    if (value.isEmpty) {
      return 'Token domain can\'t be empty';
    }
    if (!tokenDomainRegExp.hasMatch(value)) {
      return 'Domain is not valid';
    }
    return null;
  } else {
    return 'Value is null';
  }
}