getCountryByName method

Future<Country?> getCountryByName(
  1. String name, {
  2. LanguageCode? lang,
  3. dynamic firstCache = true,
  4. bool onErrorTryCache = false,
})

Implementation

Future<Country?> getCountryByName(String name,
        {LanguageCode? lang,
        firstCache: true,
        bool onErrorTryCache: false}) =>
    getCountryBy(nameFunc(name, lang: lang),
        firstCache: firstCache, onErrorTryCache: onErrorTryCache);