VietnamProvinces class

A library for managing Vietnamese provinces, districts, and wards. Supports both v1 (3-level) and v2 (2-level) administrative division structures.

Constructors

VietnamProvinces()

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

version → AdministrativeDivisionVersion
Gets the current administrative division version being used.
no setter

Static Methods

getDistricts({required int provinceCode, String? query}) → List<District>
Gets the list of districts by province code.
getProvinces({int? code, String? query}) → List<Province>
Gets the list of provinces.
getWards({required int provinceCode, int? districtCode, String? query}) → List<Ward>
Gets the list of wards.
initialize({AdministrativeDivisionVersion version = AdministrativeDivisionVersion.v2}) → Future<void>
Initializes the plugin by loading province data.