Country class

Constructors

Country({String? name, List<String>? topLevelDomain, String? alpha2Code, String? alpha3Code, List<String>? callingCodes, String? capital, List<String>? altSpellings, String? region, String? subregion, int? population, List<double>? latlng, String? demonym, double? area, double? gini, List<String>? timezones, List<String>? borders, String? nativeName, String? numericCode, List<Currency>? currencies, List<Language>? languages, Translations? translations, String? flag, List<RegionalBloc>? regionalBlocs, String? cioc})
Country.fromJson(Map<String, dynamic> json)
factory
Country.fromRawJson(String str)
factory

Properties

alpha2Code String?
s Alpha2 Code
getter/setter pair
alpha3Code String?
Alpha3 Code
getter/setter pair
altSpellings List<String>?
Alt spelling
getter/setter pair
area double?
area of country
getter/setter pair
borders List<String>?
List of country border
getter/setter pair
callingCodes List<String>?
Calling Code
getter/setter pair
capital String?
Capital City
getter/setter pair
cioc String?
Cioc(International Olympic Committee Code)
getter/setter pair
currencies List<Currency>?
Country's currency
getter/setter pair
demonym String?
Demonym
getter/setter pair
flag String?
getter/setter pair
gini double?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
languages List<Language>?
Country's language'
getter/setter pair
latlng List<double>?
Latlng(Latitude and Longitude)
getter/setter pair
name String?
Country name
getter/setter pair
nativeName String?
Native name of country
getter/setter pair
numericCode String?
Country code
getter/setter pair
population int?
Population
getter/setter pair
region String?
Region
getter/setter pair
regionalBlocs List<RegionalBloc>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subregion String?
Sub region
getter/setter pair
timezones List<String>?
Timezone exists in country
getter/setter pair
topLevelDomain List<String>?
s Top Level Domain
getter/setter pair
translations Translations?
getter/setter pair

Methods

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

Operators

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