getCountriesBy method
Implementation
Future<Iterable<Country>?> getCountriesBy(bool Function(Country) fun,
{bool firstCache: true, bool onErrorTryCache: false}) async =>
(await getCountries(firstCache: firstCache))
?.where((country) => fun(country));