isMatch method

bool isMatch(
  1. Country country
)

Determines if the specified country matches this instance

Implementation

bool isMatch(Country country) {
  return country.id == id || country.iso2 == iso2 || country.iso3 == iso3;
}