byTimeZone static method

CountryList byTimeZone(
  1. TimeZone timeZone
)

gets countries of certain timezone

Implementation

static CountryList byTimeZone(TimeZone timeZone) {
  List<Country> countries = _countryData.countries
      .where((c) => c.timeZones!.timeZones == null ? false : c.timeZones!.timeZones!.contains(timeZone))
      .toList();
  return CountryList(countries: countries);
}