Country enum

Enum for all supported countries with their ISO codes

Inheritance
Available extensions

Values

afghanistan → const Country
const Country('AF', 'afghanistan')
albania → const Country
const Country('AL', 'albania')
algeria → const Country
const Country('DZ', 'algeria')
andorra → const Country
const Country('AD', 'andorra')
angola → const Country
const Country('AO', 'angola')
antiguaAndBarbuda → const Country
const Country('AG', 'antigua-and-barbuda')
argentina → const Country
const Country('AR', 'argentina')
armenia → const Country
const Country('AM', 'armenia')
australia → const Country
const Country('AU', 'australia')
austria → const Country
const Country('AT', 'austria')
azerbaijan → const Country
const Country('AZ', 'azerbaijan')
bahamas → const Country
const Country('BS', 'bahamas')
bahrain → const Country
const Country('BH', 'bahrain')
bangladesh → const Country
const Country('BD', 'bangladesh')
barbados → const Country
const Country('BB', 'barbados')
belarus → const Country
const Country('BY', 'belarus')
belgium → const Country
const Country('BE', 'belgium')
belize → const Country
const Country('BZ', 'belize')
benin → const Country
const Country('BJ', 'benin')
bhutan → const Country
const Country('BT', 'bhutan')
bolivia → const Country
const Country('BO', 'bolivia')
bosniaAndHerzegovina → const Country
const Country('BA', 'bosnia-and-herzegovina')
botswana → const Country
const Country('BW', 'botswana')
brazil → const Country
const Country('BR', 'brazil')
brunei → const Country
const Country('BN', 'brunei')
bulgaria → const Country
const Country('BG', 'bulgaria')
burkinaFaso → const Country
const Country('BF', 'burkina-faso')
burundi → const Country
const Country('BI', 'burundi')
cambodia → const Country
const Country('KH', 'cambodia')
cameroon → const Country
const Country('CM', 'cameroon')
canada → const Country
const Country('CA', 'canada')
capeVerde → const Country
const Country('CV', 'cape-verde')
centralAfricanRepublic → const Country
const Country('CF', 'central-african-republic')
chad → const Country
const Country('TD', 'chad')
chile → const Country
const Country('CL', 'chile')
china → const Country
const Country('CN', 'china')
colombia → const Country
const Country('CO', 'colombia')
comoros → const Country
const Country('KM', 'comoros')
congoBrazzaville → const Country
const Country('CG', 'congo-brazzaville')
congoKinshasa → const Country
const Country('CD', 'congo-kinshasa')
costaRica → const Country
const Country('CR', 'costa-rica')
coteDivoire → const Country
const Country('CI', 'cote-divoire')
croatia → const Country
const Country('HR', 'croatia')
cuba → const Country
const Country('CU', 'cuba')
cyprus → const Country
const Country('CY', 'cyprus')
czechRepublic → const Country
const Country('CZ', 'czech-republic')
denmark → const Country
const Country('DK', 'denmark')
djibouti → const Country
const Country('DJ', 'djibouti')
dominica → const Country
const Country('DM', 'dominica')
dominicanRepublic → const Country
const Country('DO', 'dominican-republic')
ecuador → const Country
const Country('EC', 'ecuador')
egypt → const Country
const Country('EG', 'egypt')
elSalvador → const Country
const Country('SV', 'el-salvador')
equatorialGuinea → const Country
const Country('GQ', 'equatorial-guinea')
eritrea → const Country
const Country('ER', 'eritrea')
estonia → const Country
const Country('EE', 'estonia')
eswatini → const Country
const Country('SZ', 'eswatini')
ethiopia → const Country
const Country('ET', 'ethiopia')
fiji → const Country
const Country('FJ', 'fiji')
finland → const Country
const Country('FI', 'finland')
france → const Country
const Country('FR', 'france')
gabon → const Country
const Country('GA', 'gabon')
gambia → const Country
const Country('GM', 'gambia')
georgia → const Country
const Country('GE', 'georgia')
germany → const Country
const Country('DE', 'germany')
ghana → const Country
const Country('GH', 'ghana')
greece → const Country
const Country('GR', 'greece')
grenada → const Country
const Country('GD', 'grenada')
guatemala → const Country
const Country('GT', 'guatemala')
guinea → const Country
const Country('GN', 'guinea')
guineaBissau → const Country
const Country('GW', 'guinea-bissau')
guyana → const Country
const Country('GY', 'guyana')
haiti → const Country
const Country('HT', 'haiti')
honduras → const Country
const Country('HN', 'honduras')
hungary → const Country
const Country('HU', 'hungary')
iceland → const Country
const Country('IS', 'iceland')
india → const Country
const Country('IN', 'india')
indonesia → const Country
const Country('ID', 'indonesia')
iran → const Country
const Country('IR', 'iran')
iraq → const Country
const Country('IQ', 'iraq')
ireland → const Country
const Country('IE', 'ireland')
israel → const Country
const Country('IL', 'israel')
italy → const Country
const Country('IT', 'italy')
jamaica → const Country
const Country('JM', 'jamaica')
japan → const Country
const Country('JP', 'japan')
jordan → const Country
const Country('JO', 'jordan')
kazakhstan → const Country
const Country('KZ', 'kazakhstan')
kenya → const Country
const Country('KE', 'kenya')
kiribati → const Country
const Country('KI', 'kiribati')
northKorea → const Country
const Country('KP', 'north-korea')
southKorea → const Country
const Country('KR', 'south-korea')
kuwait → const Country
const Country('KW', 'kuwait')
kyrgyzstan → const Country
const Country('KG', 'kyrgyzstan')
laos → const Country
const Country('LA', 'laos')
latvia → const Country
const Country('LV', 'latvia')
lebanon → const Country
const Country('LB', 'lebanon')
lesotho → const Country
const Country('LS', 'lesotho')
liberia → const Country
const Country('LR', 'liberia')
libya → const Country
const Country('LY', 'libya')
liechtenstein → const Country
const Country('LI', 'liechtenstein')
lithuania → const Country
const Country('LT', 'lithuania')
luxembourg → const Country
const Country('LU', 'luxembourg')
madagascar → const Country
const Country('MG', 'madagascar')
malawi → const Country
const Country('MW', 'malawi')
malaysia → const Country
const Country('MY', 'malaysia')
maldives → const Country
const Country('MV', 'maldives')
mali → const Country
const Country('ML', 'mali')
malta → const Country
const Country('MT', 'malta')
marshallIslands → const Country
const Country('MH', 'marshall-islands')
mauritania → const Country
const Country('MR', 'mauritania')
mauritius → const Country
const Country('MU', 'mauritius')
mexico → const Country
const Country('MX', 'mexico')
micronesia → const Country
const Country('FM', 'micronesia')
moldova → const Country
const Country('MD', 'moldova')
monaco → const Country
const Country('MC', 'monaco')
mongolia → const Country
const Country('MN', 'mongolia')
montenegro → const Country
const Country('ME', 'montenegro')
morocco → const Country
const Country('MA', 'morocco')
mozambique → const Country
const Country('MZ', 'mozambique')
myanmar → const Country
const Country('MM', 'myanmar')
namibia → const Country
const Country('NA', 'namibia')
nauru → const Country
const Country('NR', 'nauru')
nepal → const Country
const Country('NP', 'nepal')
netherlands → const Country
const Country('NL', 'netherlands')
newZealand → const Country
const Country('NZ', 'new-zealand')
nicaragua → const Country
const Country('NI', 'nicaragua')
niger → const Country
const Country('NE', 'niger')
nigeria → const Country
const Country('NG', 'nigeria')
northMacedonia → const Country
const Country('MK', 'north-macedonia')
norway → const Country
const Country('NO', 'norway')
oman → const Country
const Country('OM', 'oman')
pakistan → const Country
const Country('PK', 'pakistan')
palau → const Country
const Country('PW', 'palau')
panama → const Country
const Country('PA', 'panama')
papuaNewGuinea → const Country
const Country('PG', 'papua-new-guinea')
paraguay → const Country
const Country('PY', 'paraguay')
peru → const Country
const Country('PE', 'peru')
philippines → const Country
const Country('PH', 'philippines')
poland → const Country
const Country('PL', 'poland')
portugal → const Country
const Country('PT', 'portugal')
qatar → const Country
const Country('QA', 'qatar')
romania → const Country
const Country('RO', 'romania')
russia → const Country
const Country('RU', 'russia')
rwanda → const Country
const Country('RW', 'rwanda')
saintKittsAndNevis → const Country
const Country('KN', 'saint-kitts-and-nevis')
saintLucia → const Country
const Country('LC', 'saint-lucia')
saintVincentAndTheGrenadines → const Country
const Country('VC', 'saint-vincent-and-the-grenadines')
samoa → const Country
const Country('WS', 'samoa')
sanMarino → const Country
const Country('SM', 'san-marino')
saoTomeAndPrincipe → const Country
const Country('ST', 'sao-tome-and-principe')
saudiArabia → const Country
const Country('SA', 'saudi-arabia')
senegal → const Country
const Country('SN', 'senegal')
serbia → const Country
const Country('RS', 'serbia')
seychelles → const Country
const Country('SC', 'seychelles')
sierraLeone → const Country
const Country('SL', 'sierra-leone')
singapore → const Country
const Country('SG', 'singapore')
slovakia → const Country
const Country('SK', 'slovakia')
slovenia → const Country
const Country('SI', 'slovenia')
solomonIslands → const Country
const Country('SB', 'solomon-islands')
somalia → const Country
const Country('SO', 'somalia')
southAfrica → const Country
const Country('ZA', 'south-africa')
southSudan → const Country
const Country('SS', 'south-sudan')
spain → const Country
const Country('ES', 'spain')
sriLanka → const Country
const Country('LK', 'sri-lanka')
sudan → const Country
const Country('SD', 'sudan')
suriname → const Country
const Country('SR', 'suriname')
sweden → const Country
const Country('SE', 'sweden')
switzerland → const Country
const Country('CH', 'switzerland')
syria → const Country
const Country('SY', 'syria')
taiwan → const Country
const Country('TW', 'taiwan')
tajikistan → const Country
const Country('TJ', 'tajikistan')
tanzania → const Country
const Country('TZ', 'tanzania')
thailand → const Country
const Country('TH', 'thailand')
timorLeste → const Country
const Country('TL', 'timor-leste')
togo → const Country
const Country('TG', 'togo')
tonga → const Country
const Country('TO', 'tonga')
trinidadAndTobago → const Country
const Country('TT', 'trinidad-and-tobago')
tunisia → const Country
const Country('TN', 'tunisia')
turkey → const Country
const Country('TR', 'turkey')
turkmenistan → const Country
const Country('TM', 'turkmenistan')
tuvalu → const Country
const Country('TV', 'tuvalu')
uganda → const Country
const Country('UG', 'uganda')
ukraine → const Country
const Country('UA', 'ukraine')
unitedArabEmirates → const Country
const Country('AE', 'united-arab-emirates')
unitedKingdom → const Country
const Country('GB', 'united-kingdom')
unitedStates → const Country
const Country('US', 'united-states')
uruguay → const Country
const Country('UY', 'uruguay')
uzbekistan → const Country
const Country('UZ', 'uzbekistan')
vanuatu → const Country
const Country('VU', 'vanuatu')
vaticanCity → const Country
const Country('VA', 'vatican-city')
venezuela → const Country
const Country('VE', 'venezuela')
vietnam → const Country
const Country('VN', 'vietnam')
yemen → const Country
const Country('YE', 'yemen')
zambia → const Country
const Country('ZM', 'zambia')
zimbabwe → const Country
const Country('ZW', 'zimbabwe')
england → const Country
const Country('GB-ENG', 'england')
scotland → const Country
const Country('GB-SCT', 'scotland')
wales → const Country
const Country('GB-WLS', 'wales')
northernIreland → const Country
const Country('GB-NIR', 'northern-ireland')
europeanUnion → const Country
const Country('EU', 'european-union')

Properties

code String
ISO country code (2-letter)
final
displayName String
Get display name (formatted for UI)
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
Country name (lowercase with dashes)
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

allCodes List<String>
Get all country codes
no setter
allDisplayNames List<String>
Get all display names
no setter
allNames List<String>
Get all country names
no setter

Static Methods

fromCode(String code) Country?
Find country by code
fromName(String name) Country?
Find country by name

Constants

values → const List<Country>
A constant List of the values in this enum, in order of their declaration.