nameContainsFunc method
Implementation
nameContainsFunc(String name, {String? lang}) =>
(Country country) => lang == null || lang.toLowerCase() == 'en'
? country.name?.toLowerCase().contains(name.toLowerCase()) == true
: country.translations?[lang]
?.toLowerCase()
.contains(name.toLowerCase()) ==
true;