findCountryByCountryCode static method

dynamic findCountryByCountryCode(
  1. String? countryCode
)

Implementation

static findCountryByCountryCode(String? countryCode) {
  return ALL.singleWhere(
    (item) => item.dialingCode.toLowerCase() == countryCode!.toLowerCase(),
  );
}