IsoCountry class
Properties
alpha2
→ String
Alpha-2 code as defined in (ISO 3166-1)https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
no setter
alpha3
→ String
Alpha-3 code as defined in (ISO 3166-1)https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
no setter
data
→ Country
final
flagEmoji
→ String
Emoji flags are supported on all major platforms except Windows,
which displays two-letter country codes instead of emoji flag images.
no setter
hashCode
→ int
The hash code for this object.
no setter override
isoShortName
→ String
Country short name which is defined by ISO 3166-1, a standard defining
codes for the names of countries, dependent territories, and special
areas of geographical interest.
no setter
isoShortNameByLanguageCode
→ Map <String , String >
Map for storing country short name by locale
no setter
languagesOfficial
→ List <String >
An official language is a language given a special status in a particular
country, state, or other jurisdiction.
no setter
languagesSpoken
→ List <String >
This list shows countries/disputed countries organized by the languages
which are spoken there.
no setter
numeric
→ String
Numeric code as defined in (ISO 3166-1)https://en.wikipedia.org/wiki/ISO_3166-1_numeric
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
override
Static Methods
parse (String source )
→ IsoCountry
Parses source
as Alpha-2, alpha-3 or numeric country code
The source
must be either 2-3 ASCII uppercase letters of alpha code,
or 2-3 digits of numeric code
Throws FormatException
if the code is not valid country code
tryParse (String source )
→ IsoCountry ?
Parses source
as Alpha-2, alpha-3 or numeric country code.
Same as parse but returns null
in case of invalid country code