Country class

Constructors

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

Properties

alpha2Code String?
final
alpha3Code String?
final
altSpellings List<String>?
final
area int?
final
borders List<String>?
final
callingCodes List<String>?
final
capital String?
final
cioc String?
final
cities List<String>?
final
currencies List<Currency>?
final
demonym String?
final
flag String?
final
flags Flags?
final
hashCode int
The hash code for this object.
no setterinherited
independent bool?
final
languages List<Language>?
final
latlng List<int>?
final
name String?
final
nativeName String?
final
numericCode String?
final
population int?
final
region String?
final
regionalBlocs List<RegionalBloc>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subregion String?
final
timezones List<String>?
final
topLevelDomain List<String>?
final
translations Translations?
final

Methods

copyWith({String? name, List<String>? topLevelDomain, String? alpha2Code, String? alpha3Code, List<String>? callingCodes, String? capital, List<String>? altSpellings, String? subregion, String? region, int? population, List<int>? latlng, String? demonym, int? area, List<String>? timezones, List<String>? borders, String? nativeName, String? numericCode, Flags? flags, List<Currency>? currencies, List<Language>? languages, Translations? translations, String? flag, List<RegionalBloc>? regionalBlocs, String? cioc, bool? independent, List<String>? cities}) Country
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