int getMaxLengthByCountryCode(String countryCode) { final country = countries.firstWhere( (country) => country.code == countryCode, orElse: () => throw 0, ); return country.maxLength; }