getworld 1.0.1 copy "getworld: ^1.0.1" to clipboard
getworld: ^1.0.1 copied to clipboard

A dart package to get countries, languages and currencies data.

Sublime's custom image

getworld #

Simple package for getting countries, currenices and languages information.

Installation #

Run this command:

With Dart:

 $ dart pub add getworld

With Flutter:

 $ flutter pub add getworld

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

dependencies:
  getworld: ^1.0.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:getworld/getworld.dart';

Design goals and limitations #

While this package provides getworld for convenience, as the name implies, the design goal of this package is for countires data like codes, names, capitals and geographical info and so on.

Usage #

A simple usage example:

import  'package:getworld/getworld.dart';
void  main() async {
await  GetWorld().initialize();
print(Countries.length);
print(Currencies.length);
print(Languages.length);
}

Features and bugs #

Please file feature requests and bugs at the [issue tracker][tracker]. issue tracker

References #

  1. Countries ISO 3166 code
  2. Languages ISO 639
  3. Currencies ISO_4217
  4. arash16/countries-languages
  5. ksafranski/Common-Currency.json
  6. CryceTruly/currencies.json
  7. dr5hn/countries-states-cities-database
  8. country.io
12
likes
135
pub points
45%
popularity

Publisher

unverified uploader

A dart package to get countries, languages and currencies data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on getworld