TurkishProvinces class abstract final

Lookup of the 81 provinces of Turkey and their districts, embedded in the package (no network needed).

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

all → List<TurkishProvince>
All 81 provinces, ordered by plate code.
final
districtCount → int
The total number of districts (973).
no setter

Static Methods

byName(String name) → TurkishProvince?
The province called name, ignoring case and accents ('istanbul', 'İSTANBUL' and 'Istanbul' all work), or null.
byPlateCode(int plateCode) → TurkishProvince?
The province with plate code plateCode (1-81), or null.
provincesWithDistrict(String district) → List<TurkishProvince>
All provinces that have a district called district, ignoring case and accents. Some names exist in several provinces (for example Ereğli in Konya and Zonguldak, and Merkez in 51 provinces).
Provinces whose name contains query, ignoring case and accents, in plate-code order. Provinces whose name starts with the query come first.