Country class

A Country model represents an instance of a country which contains information about the country

Constructors

Country({required String? name, required String? alpha2Code, required String? alpha3Code, required String? dialCode, required String flagUri, Map<String, String>? nameTranslations})
Country.fromJson(Map<String, dynamic> data)
Convert Countries.countryList to Country model
factory

Properties

alpha2Code String?
The alpha 2 isoCode of the Country
final
alpha3Code String?
The alpha 3 isoCode of the Country
final
dialCode String?
The dialCode of the Country
final
flagUri String
The flagUri which links to the flag for the Country in the library assets
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
name String?
The name of the Country
final
nameTranslations Map<String, String>?
The nameTranslation for translation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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