findByIsoCode static method
returns a country with the specified isoCode
or null
if
none or more than 1 are found
Implementation
static findByIsoCode(String? isoCode) {
return ALL.singleWhere(
(item) => item.isoCode == isoCode,
);
}
returns a country with the specified isoCode
or null
if
none or more than 1 are found
static findByIsoCode(String? isoCode) {
return ALL.singleWhere(
(item) => item.isoCode == isoCode,
);
}