findCountryDatasByCountryCodes static method
Finds a list of PhoneCountryData objects by a list of
iso codes, e.g. countryIsoCodes: 'RU', 'US', 'AU'
Implementation
static List<PhoneCountryData> findCountryDatasByCountryCodes({
required List<String> countryIsoCodes,
}) {
final list = <PhoneCountryData>[];
for (var code in countryIsoCodes) {
final data = getPhoneCountryDataByCountryCode(
code,
);
if (data != null) {
list.add(data);
}
}
return list;
}