timezone_country 1.0.0
timezone_country: ^1.0.0 copied to clipboard
Convert IANA timezones to ISO 3166-1 country codes and back. Country names, flag emoji, alpha-2/alpha-3 support. Pure Dart, zero dependencies, O(1) const-map lookups.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add timezone_countryWith Flutter:
$ flutter pub add timezone_countryThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
timezone_country: ^1.0.0Alternatively, 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:timezone_country/timezone_country.dart';