models/districs library

Classes

District
Represents a district with details such as its name, province, and ID.

Properties

slDistricts List<District>
A list of District objects representing the districts in your application.
final

Functions

getDistrictById(int id) District?
Returns the District object with the matching id, or null if no district is found.
getDistrictsByProvinceId(int provinceId) List<District>
Returns a list of District objects that belong to the specified province.