timezonesForCountry method

Future<List<String>> timezonesForCountry(
  1. String countryCode
)

Timezones for a single country code (case-insensitive). Returns an empty list when the code is unknown.

Implementation

Future<List<String>> timezonesForCountry(String countryCode) async {
  final map = await getCountryTimezones();
  return map[countryCode.toUpperCase()] ?? const <String>[];
}