findByIsoCode static method

dynamic findByIsoCode(
  1. String isoCode
)

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,
  );
}