Nation class

Nation

Inheritance

Constructors

Nation()

Properties

allAreas Map<String, Area>
latefinal
allCities Map<String, Area>
latefinal
allCounties Map<String, Area>
latefinal
allProvinces Map<String, Area>
latefinal
children List<Area>
finalinherited
code String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isCity bool
no setterinherited
isCounty bool
no setterinherited
isNation bool
no setterinherited
isProvince bool
no setterinherited
name String
finalinherited
parent Area?
getter/setter pairinherited
parentCode String
no setterinherited
parentValue int
get parent area value
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
no setterinherited

Methods

add(Area child) → void
inherited
findByName(String? name) Area?
find area by name,maybe area names are same
findCity(String? nameProvince, String? nameCity) City?
find city by province and city
findCounty(String? nameProvince, String? nameCity, String? nameCounty) County?
find count by province and city and county names
findProvince(String? nameProvince) Province?
find province by name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sort() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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