getCountryByCountryCode method

Country getCountryByCountryCode(
  1. String countryCode
)

Implementation

Country getCountryByCountryCode(String countryCode) {
  return getCountries.firstWhere((country) => country.code == countryCode,
      orElse: () {
    return _selectedCountry;
  });
}