dart_countries_states 0.1.1 copy "dart_countries_states: ^0.1.1" to clipboard
dart_countries_states: ^0.1.1 copied to clipboard

A Dart project that contains all the countries information about them. Support multiple languages.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_countries_states

With Flutter:

 $ flutter pub add dart_countries_states

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dart_countries_states: ^0.1.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dart_countries_states/country_provider.dart';
import 'package:dart_countries_states/models/alpha2_codes.dart';
import 'package:dart_countries_states/models/alpha2_codes.g.dart';
import 'package:dart_countries_states/models/alpha3_code.dart';
import 'package:dart_countries_states/models/alpha3_code.g.dart';
import 'package:dart_countries_states/models/country.dart';
import 'package:dart_countries_states/models/country.g.dart';
import 'package:dart_countries_states/models/currencies.dart';
import 'package:dart_countries_states/models/currencies.g.dart';
import 'package:dart_countries_states/models/languages.dart';
import 'package:dart_countries_states/models/languages.g.dart';
import 'package:dart_countries_states/models/regional_blocs.dart';
import 'package:dart_countries_states/models/regional_blocs.g.dart';
import 'package:dart_countries_states/models/supported_languages.dart';
import 'package:dart_countries_states/models/supported_languages.g.dart';
import 'package:dart_countries_states/street_provider.dart';
13
likes
110
pub points
40%
popularity

Publisher

unverified uploader

A Dart project that contains all the countries information about them. Support multiple languages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

built_collection, built_value, http, logger

More

Packages that depend on dart_countries_states