Country class

Constructors

Country({required String name, required String flagUrl, required City capital, required String lang, List<String>? langs, required String area, required String population, required Currency currency, List<Currency>? currencies, required String timeZone, required DateFormat dateFormat, required DrivingSide drivingSide, String? callingCode, String? isoCode, String? internetTLD, CalendarType? calendarType, required Continent continent})
const

Properties

area String
area Defines the country area.
final
calendarType CalendarType?
calendarType Defines the calendars type, lunar, solar.
final
callingCode String?
callingCode Defines the calling code, example +39, +1 ect.
final
capital City
capital Defines the capital city.
final
continent Continent
continent Defines the country continent, Africa, Asia, Europe ect.
final
currencies List<Currency>?
currencies Defines the other currencies used in country.
final
currency Currency
currency Defines the official currency.
final
dateFormat DateFormat
dateFormat Defines used format for the date.
final
drivingSide DrivingSide
drivingSide Defines the driving side in that country.
final
flagUrl String
flagUrl Gives you an image url of the country flag, you'll be able to displaying it with Image.network.
final
hashCode int
The hash code for this object.
no setterinherited
internetTLD String?
internetTLD Defines the top level domain, example: .it, .is ect.
final
isoCode String?
isoCode Defines the identifier code for the country, example: IT, US ect.
final
lang String
lang Defines the official language.
final
langs List<String>?
langs Defines the other languages used in country.
final
name String
name Defines the country name.
final
population String
population Defines the country population.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeZone String
final

Methods

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

Operators

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