nameFunc method
Implementation
nameFunc(String name, {LanguageCode? lang}) =>
(Country country) => lang == null
? country.name?.toLowerCase() == name.toLowerCase()
: country.translations?[lang]?.toLowerCase() == name.toLowerCase();