static Country findByCode(String code) { return _list.firstWhere( (country) => country.code == code, orElse: () { throw Exception('Could not find country by name code: $code'); }, ); }