fromCode static method

Country fromCode(
  1. String isoCode
)

Returns Country instance using isoCode.

Implementation

static Country fromCode(String isoCode) {
  isoCode = isoCode.toUpperCase();
  return countries.firstWhere((c) => c.code == isoCode);
}