getCountryByCode method
Get country by country code (e.g., "243")
Implementation
Future<LokotroCountry?> getCountryByCode(String countryCode) async {
final countries = await fetchCountries();
for (final country in countries) {
for (final code in country.countryCodes) {
if (code.countryCode == countryCode) {
return country;
}
}
}
return null;
}