nameFunc method

dynamic nameFunc(
  1. String name, {
  2. LanguageCode? lang,
})

Implementation

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