dvhcvn
2.1.20250301, released 2 years ago by daohoangson.com
Provides Vietnamese administrative unit data and lookup functions.
WASM-ready
What it does
Offers a list of level‑1 units and methods to find level‑1, level‑2, and level‑3 units by ID or name. The data is updated from the official source and includes hierarchical relationships.
AI-written summary of version 2.1.20250301, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display or search Vietnamese administrative units in a Flutter or Dart app.
- You want a lightweight, dependency‑free data source for city, district, and ward information.
Skip it when
- You require real‑time updates from a remote API or need to modify the data structure at runtime.
Strengths
- No external dependencies, simple API, up‑to‑date data as of 01/03/2025.
- Fast in‑memory lookup, no network calls needed.
Weaknesses
- Only supports Vietnamese units; no internationalization.
- Data size grows with updates; may increase package size.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:dvhcvn/dvhcvn.dart' as dvhcvn;
final haNoi = dvhcvn.findLevel1ById('01');
final baDinh = haNoi.findLevel2ById('001');
final phucXa = baDinh.findLevel3ById('00001');
print(phucXa);