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 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