countryCode property

String countryCode

Implementation

String get countryCode {
  if (isEmpty) {
    return '';
  }

  for (var c in Constants.countryCodes.entries) {
    if (startsWith(c.key)) {
      return Constants.countryCodes[c.key] ?? '';
    }
  }
  return '';
}