getworld 1.0.1 getworld: ^1.0.1 copied to clipboard
A dart package to get countries, languages and currencies data.
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