country_to_timezone 0.1.2
country_to_timezone: ^0.1.2 copied to clipboard
Converts a ISO 3166-1 alpha-2 code to a timezone. (e.g. 'DE' to 'Europe/Berlin')
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add country_to_timezoneThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
country_to_timezone: ^0.1.2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:country_to_timezone/country_to_timezone.dart';