isTld static method

bool isTld(
  1. String s
)

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

Implementation

static bool isTld(String s) {
  return suffixList.containsKey(s);
}