TerritoryData class Territories

Locale independent data about territories.

Constructors

TerritoryData()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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

Static Properties

combined Map<String, Set<String>>
Combination of territory containment and grouping
final
containment → CanonicalizedMap<String, String, Set<String>>
Territory containment.
final
countries Set<String>
Get list of all country (so not territories) codes.
final
grouping → CanonicalizedMap<String, String, Set<String>>
Territory grouping.
final
subdivisions → CanonicalizedMap<String, String, Set<String>>
Territory grouping.
final

Static Methods

getCountries(String code) Set<String>?
Get the countries in a region or grouping.
getLowestSubdivisions(String code) Set<String>?
Get the lowest level subdivisions in a territory or subdivision.
getTopSubdivisions(String code) Set<String>?
Get the highest subdivisions in a territory or subdivision.
isContinent(String code) bool
Returns if the code represents a continent.
isCountry(String code) bool
Returns if the code represents a country.
isGrouping(String code) bool
Returns if the code represents a grouping.
isSubContinent(String code) bool
Returns if the code represents a subcontinent.
isWorld(String code) bool
Returns if the code represents the world.