You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 1. Get provincesfinal provinces =NusantaraData.getAllProvinces();
// 2. Get cities by provincefinal cities =NusantaraData.getCitiesByProvinceId(selectedProvince.id);
// 3. Get districts by cityfinal districts =NusantaraData.getDistrictsByCityId(selectedCity.id);
// 4. Get villages by districtfinal villages =NusantaraData.getVillagesByDistrictId(selectedDistrict.id);
final locations =NusantaraData.getLocationByPostalCode('10110');
// Returns full address: Gambir, Gambir, Kota Jakarta Pusat, DKI Jakartafor (final location in locations) {
print(location.getFullAddress());
}
Copyright 2026 Naufal Prakoso
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0