state_city_population 0.0.2 copy "state_city_population: ^0.0.2" to clipboard
state_city_population: ^0.0.2 copied to clipboard

Dart 1 only

Dart list of states and cities

example/state_city_population_example.dart

// Copyright (c) 2017, emersonmoura. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:state_city_population/state_city_population.dart';

main() {
  var stateCity = new StateCity();

  stateCity.init("BR").then((data) {
    print(stateCity.listStates());

    print(stateCity.listCities("SP"));

    stateCity.listCities("SP").forEach((city) {
      print("${city.name}: ${city.population}");
    });
  });
}
0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Dart list of states and cities

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

More

Packages that depend on state_city_population