lookup method

T lookup(
  1. String key
)

Implementation

T lookup(String key) {
  if (data.containsKey(key)) {
    return data[key]!;
  }
  // Provide fallback country
  var t = buildUnknown("unknown (key:$key)", key);
  t.setKey(key);
  return t;
}