isGTLD static method

bool isGTLD(
  1. String s
)

Checks if the given string s is a gtld. Example : de => false com => true

Implementation

static bool isGTLD(String s) {
  return gtldList.contains(s);
}