Subdivision class
A class for storing subdivision of country
Constructors
-
Subdivision({required String name, required String code, required SubdivisionGeoData? geo, required Map<
String, dynamic> translation, required String type}) -
Creates subdivision
const
-
Subdivision.fromJson(Map<
String, dynamic> json) -
Creates subdivision with a decoded json object from countries
factory
Properties
- code → String
-
The code of this subdivision
final
- geo → SubdivisionGeoData?
-
The GeoData info of this subdivision
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of this subdivision
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
translation
→ Map<
String, dynamic> -
The translation map of this subdivision
final
- type → String
-
The type of this subdivision
final
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