DistrictPopulation class

Result of getDistrictPopulation: a district's 2023 census counts.

Constructors

DistrictPopulation({required String district, required String province, required int? population, required int? households, required int? urban, required int? rural, int census = 2023, required String? censusDistrict, required bool boundaryChanged, required String? note, required DataSource source})
Creates a district population value.
const

Properties

boundaryChanged → bool
true when the district has lost area to a district created after the census: the figures are for the district as it was at the census.
final
census → int
Always 2023: the 7th Population and Housing Census.
final
censusDistrict → String?
The census district the figures belong to. For a district created after the census, the one its area was part of (its own figures are null); null in Gilgit-Baltistan and Azad Jammu and Kashmir, which the census did not cover.
final
district → String
The district, as in getDistrictsByProvince.
final
hashCode → int
The hash code for this object.
no setteroverride
households → int?
Households, or null.
final
note → String?
Why figures are missing or what they cover, or null.
final
population → int?
Total population (all sexes), or null where the census has no figure.
final
province → String
Its province or territory.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
rural → int?
Rural population, or null.
final
source → DataSource
The census tables (dataset district-population).
final
urban → int?
Urban population, or null.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON form, with the same keys as the npm package.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override