Locale class

Locale

Implemented types

Constructors

Locale({required String ip, required String countryCode, required String country, required String continentCode, required String continent, required bool eu, required String currency})
Locale.fromMap(Map<String, dynamic> map)
factory

Properties

continent String
Continent name. This field support localization.
final
continentCode String
Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
final
country String
Country name. This field support localization.
final
countryCode String
Country code in ISO 3166-1 two-character format
final
currency String
Currency code in ISO 4217-1 three-character format
final
eu bool
True if country is part of the European Union.
final
hashCode int
The hash code for this object.
no setterinherited
ip String
User IP address.
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
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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