CountryCode class

Country code structure. 国家码信息,包含国家码字符串和国家码的来源信息。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#countrycode

Constructors

CountryCode.new({required String country, required CountryCodeType type})
CountryCode.fromString(String json)
factory

Properties

country String
Country code character string. 表示国家码字符串。
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type CountryCodeType
Country code source. 表示国家码信息来源。
final

Methods

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

Operators

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