isSubTld static method

bool isSubTld(
  1. String tld,
  2. String? subTld
)

Checks if the given string subTld is a subTld

Implementation

static bool isSubTld(String tld, String? subTld) {
  var subTLDs = suffixList[tld];
  if (subTLDs == null) {
    return false;
  }
  if (subTLDs.contains(subTld)) {
    return true;
  }
  return false;
}