CityTree class

tree point

Constructors

CityTree({Map<String, dynamic> metaInfo = citiesData, Map<String, String>? provincesInfo})
@param metaInfo city and areas meta describe

Properties

hashCode int
The hash code for this object.
no setterinherited
metaInfo Map<String, dynamic>
build cityTrees's meta, it can be changed bu developers
getter/setter pair
provincesInfo Map<String, String>?
provData user self-defining data
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tree Point
the tree's modal data = Point( letter, name code, letter, child: Point ) data = [ { letter: 'Z', name: '浙江', code: 330000 child: letter: 'h', name: '杭州', child } ]
getter/setter pair

Methods

initTree(String provinceId) Point
build tree by int provinceId, @param provinceId this is province id @return tree
initTreeByCode(String code) Point
build tree by any code provinceId or cityCode or areaCode @param code build a tree @return Point a province with its cities and areas tree
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