countryCodeOrNull property

String? countryCodeOrNull

Gets country code from Location.name.

Returns null if the country code could not found.

Implementation

String? get countryCodeOrNull =>
    TimeZoneToCountry.getCountryCodeOrNull(this.name);