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
Libraries
- data/curriences
- data/data_compact
- data/languages
- extensions
- getworld
- GetWorld is a dart package that helps to get countries, currencies and languages informations of the world.
- scr/city
- scr/country
- scr/currency
- scr/dialling
- scr/enums
- scr/extra
- scr/geographical
- scr/language
- scr/latlng
- scr/name
- scr/population
- scr/state
- scr/translation
- scr/vat_rate