Country class

A country definition with image asset, dialing code and localized name.

Constructors

Country({required String asset, required String assetCircleFlag, required String dialingCode, required String isoCode, required String currency, required String currencyISO, String name = ""})
Instantiates a Country with the specified asset, dialingCode and isoCode
const

Properties

asset String
the flag image asset name
final
assetCircleFlag String
final
currency String
final
currencyISO String
final
dialingCode String
the dialing code
final
hashCode int
The hash code for this object.
no setteroverride
isoCode String
the 2-letter ISO code
final
name String
the localized / English country name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? name, String? isoCode, String? dialingCode, String? currency, String? currencyISO}) Country
Creates a copy with modified values
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.
override

Static Properties

ALL List<Country>
All the countries in the picker list
final

Static Methods

findCountryByCountryCode(String? countryCode) → dynamic
findCountryByIsoCode(String isoCode) → dynamic
returns a country with the specified isoCode or null if none or more than 1 are found

Constants

AC → const Country
AE → const Country
AF → const Country
AG → const Country
AI → const Country
AL → const Country
AM → const Country
AO → const Country
AQ → const Country
AR → const Country
AS → const Country
AT → const Country
AU → const Country
AW → const Country
AX → const Country
AZ → const Country
BA → const Country
BB → const Country
BD → const Country
BE → const Country
BF → const Country
BG → const Country
BH → const Country
BI → const Country
BJ → const Country
BL → const Country
BM → const Country
BN → const Country
BO → const Country
BQ → const Country
BR → const Country
BS → const Country
BT → const Country
BV → const Country
BW → const Country
BY → const Country
BZ → const Country
CA → const Country
CC → const Country
CD → const Country
CF → const Country
CG → const Country
CH → const Country
CI → const Country
CK → const Country
CL → const Country
CM → const Country
CN → const Country
CO → const Country
CR → const Country
CU → const Country
CV → const Country
CW → const Country
CX → const Country
CY → const Country
CZ → const Country
DE → const Country
DJ → const Country
DK → const Country
DM → const Country
DO → const Country
DZ → const Country
EC → const Country
EE → const Country
EG → const Country
EH → const Country
ER → const Country
ES → const Country
ET → const Country
FI → const Country
FJ → const Country
FK → const Country
FM → const Country
FO → const Country
FR → const Country
GA → const Country
GB → const Country
GD → const Country
GE → const Country
GF → const Country
GG → const Country
GH → const Country
GI → const Country
GL → const Country
GM → const Country
GN → const Country
GP → const Country
GQ → const Country
GR → const Country
GS → const Country
GT → const Country
GU → const Country
GW → const Country
GY → const Country
HK → const Country
HM → const Country
HN → const Country
HR → const Country
HT → const Country
HU → const Country
ID → const Country
IE → const Country
IL → const Country
IM → const Country
IN → const Country
IO → const Country
IQ → const Country
IR → const Country
IS → const Country
IT → const Country
JE → const Country
JM → const Country
JO → const Country
JP → const Country
KE → const Country
KG → const Country
KH → const Country
KI → const Country
KM → const Country
KN → const Country
KP → const Country
KR → const Country
KW → const Country
KY → const Country
KZ → const Country
LA → const Country
LB → const Country
LC → const Country
LI → const Country
LK → const Country
LR → const Country
LS → const Country
LT → const Country
LU → const Country
LV → const Country
LY → const Country
MA → const Country
MC → const Country
MD → const Country
ME → const Country
MF → const Country
MG → const Country
MH → const Country
MK → const Country
ML → const Country
MM → const Country
MN → const Country
MO → const Country
MP → const Country
MQ → const Country
MR → const Country
MS → const Country
MT → const Country
MU → const Country
MV → const Country
MW → const Country
MX → const Country
MY → const Country
MZ → const Country
NA → const Country
NC → const Country
NE → const Country
NF → const Country
NG → const Country
NI → const Country
NL → const Country
NO → const Country
NP → const Country
NR → const Country
NU → const Country
NZ → const Country
OM → const Country
PA → const Country
PE → const Country
PF → const Country
PG → const Country
PH → const Country
PK → const Country
PL → const Country
PM → const Country
PN → const Country
PR → const Country
PS → const Country
PT → const Country
PW → const Country
PY → const Country
QA → const Country
RE → const Country
RO → const Country
RS → const Country
RU → const Country
RW → const Country
SA → const Country
SB → const Country
SC → const Country
SD → const Country
SE → const Country
SG → const Country
SH → const Country
SI → const Country
SJ → const Country
SK → const Country
SL → const Country
SM → const Country
SN → const Country
SO → const Country
SR → const Country
SS → const Country
ST → const Country
SV → const Country
SX → const Country
SY → const Country
SZ → const Country
TC → const Country
TD → const Country
TF → const Country
TG → const Country
TH → const Country
TJ → const Country
TK → const Country
TL → const Country
TM → const Country
TN → const Country
TO → const Country
TR → const Country
TT → const Country
TV → const Country
TW → const Country
TZ → const Country
UA → const Country
UG → const Country
UM → const Country
US → const Country
UY → const Country
UZ → const Country
VA → const Country
VC → const Country
VE → const Country
VG → const Country
VI → const Country
VN → const Country
VU → const Country
WF → const Country
WS → const Country
YE → const Country
YT → const Country
ZA → const Country
ZM → const Country
ZW → const Country