Country class
Class for storing information of the country
- Available extensions
Constructors
-
Country({required String alpha2, required String alpha3, required Continent continent, required String countryCode, required String currencyCode, required DistanceUnit distanceUnit, String? gec, required GeoData geo, String? internationalPrefix, String? ioc, required String isoLongName, required String isoShortName, required List<
String> languagesOfficial, required List<String> languagesSpoken, required List<int> nationalDestinationCodeLengths, required List<int> nationalNumberLengths, String? nationalPrefix, String? nationality, required String number, required bool postalCode, String? postalCodeFormat, Region? region, required Week startOfWeek, String? subregion, required String unLocode, required bool unMember, required List<String> unofficialNames, String? vehicleRegistrationCode, required WorldRegion worldRegion, String? addressFormat, VatRates? vatRates, String? nanpPrefix, required bool eeaMember, required bool euMember, required bool esmMember, String? altCurrency, required bool g7Member, required bool g20Member, required Map<String, String> isoShortNameByLocale, required List<Subdivision> subdivision}) -
Creates country
const
-
Country.fromJson(Map<
String, dynamic> json) -
Creates a country with a decoded json object from countries
factory
Properties
- addressFormat → String?
-
A template for formatting addresses in this country.
final
- alpha2 → String
-
ISO 3166-1 alpha-2 codes are two-letter country codes defined in
ISO 3166-1, part of the ISO 3166 standard published by the International
Organization for Standardization (ISO), to represent countries, dependent
territories, and special areas of geographical interest.
final
- alpha3 → String
-
ISO 3166-1 alpha-3 codes are three-letter country codes defined in
ISO 3166-1, part of the ISO 3166 standard published by the International
Organization for Standardization (ISO), to represent countries, dependent
territories, and special areas of geographical interest.
final
- altCurrency → String?
-
A complementary currency is a currency or medium of exchange that is not
necessarily a national currency, but that is thought of as supplementing
or complementing national currencies.
final
- continent → Continent
-
The continent that this country belongs to.
final
- countryCode → String
-
Country calling codes or country dial-in codes are telephone number
prefixes for reaching telephone subscribers in the networks of the member
countries or regions of the International Telecommunication Union (ITU).
final
- currencyCode → String
-
ISO 4217 is a standard published by International Organization for
Standardization (ISO) that defines alpha codes and numeric codes for the
representation of currencies and provides information about the
relationships between individual currencies and their minor units.
final
- distanceUnit → DistanceUnit
-
Country Distance Unit (miles/kilometres)
final
- eeaMember → bool
-
If this country is a member of the European Economic Area.
final
- esmMember → bool
-
If this country is a member of the European Single Market.
final
- euMember → bool
-
If this country is a member of the European Union.
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
- g20Member → bool
-
If this country is a member of the Group of Twenty.
final
- g7Member → bool
-
If this country is a member of the Group of Seven.
final
- gec → String?
-
The FIPS 10-4 standard, Countries, Dependencies, Areas of Special
Sovereignty, and Their Principal Administrative Divisions, was a list of
two-letter country codes that were used by the U.S. Government for
geographical data processing in many publications.
final
- geo → GeoData
-
The geographic coordinate system (GCS) is a spherical or ellipsoidal
coordinate system for measuring and communicating positions directly on
the Earth as latitude and longitude.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- internationalPrefix → String?
-
An international call prefix or dial out code is a trunk prefix used to
select an international telephone circuit for placing an international
call.
final
- ioc → String?
-
The International Olympic Committee (IOC) uses three-letter abbreviation
country codes to refer to each group of athletes that participate in
the Olympic Games.
final
- isoLongName → String
-
Country full 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.
final
- 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.
final
-
isoShortNameByLanguage
→ Map<
String, String> -
no setter
-
isoShortNameByLocale
→ Map<
String, String> -
Map for storing country short name by locale
final
-
languagesOfficial
→ List<
String> -
An official language is a language given a special status in a particular
country, state, or other jurisdiction.
final
-
languagesSpoken
→ List<
String> -
This list shows countries/disputed countries organized by the languages
which are spoken there.
final
- nanpPrefix → String?
-
The North American Numbering Plan (NANP) is a telephone numbering plan for
twenty-five regions in twenty countries, primarily in North America and
the Caribbean.
final
-
nationalDestinationCodeLengths
→ List<
int> -
National Destination Code (NDC or NXX), commonly referred to as an
International City Code or Number Plan Area or Area Code or significant
leading digits of National Significant Number, is specified in ITU-T E.164.
final
- nationality → String?
-
Nationality is a legal identification of a person in international law,
establishing the person as a subject, a national, of a sovereign state.
final
-
nationalNumberLengths
→ List<
int> -
The lengths of national numbers valid for this country.
final
- nationalPrefix → String?
-
The phone prefix used in this country for dialing national numbers
final
- number → String
-
The ISO 3166-1 numeric code for this country
final
- postalCode → bool
-
Does this country uses postal codes in addresses
final
- postalCodeFormat → String?
-
The regex for valid postal codes in this country
final
- region → Region?
-
The Region this country is in. Approximately matches the United Nations
geoscheme
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startOfWeek → Week
-
The starting day of the week
final
-
subdivision
→ List<
Subdivision> -
Map for subdivision
final
- subregion → String?
-
The Subegion this country is in. Approximately matches the United Nations
geoscheme's Subregions
final
- unLocode → String
-
The UN/LOCODE prefix for this country
final
- unMember → bool
-
If this country is a member of the United Nations
final
-
unofficialNames
→ List<
String> -
Array of unofficial, slang names or aliases for this country
final
- vatRates → VatRates?
-
The VAT rates that this country has
final
- vehicleRegistrationCode → String?
-
The vehicle registration code for this Country
final
- worldRegion → WorldRegion
-
The World Region this country is in: WorldRegion.amer
, WorldRegion.apac or WorldRegion.emea
final
Methods
-
getIsoShortNameByLocale(
[Locale? locale]) → String -
Available on Country, provided by the CountryExtension extension
-
isoLocalizedShortName(
[Locale? locale]) → String -
Available on Country, provided by the CountryExtension extension
Quick way to get country short name by dart:ui locale throws ArgumentError when could not find any country short name -
isoLocalizedShortNameOrNull(
[Locale? locale]) → String? -
Available on Country, provided by the CountryExtension extension
Quick way to get country short name by dart:ui locale -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
tryGetIsoShortNameByLocale(
[Locale? locale]) → String? -
Available on Country, provided by the CountryExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override