capitalContainsFunc method
Implementation
capitalContainsFunc(String capital) => (Country country) =>
country.capital?.toLowerCase().contains(capital.toLowerCase()) == true;
capitalContainsFunc(String capital) => (Country country) =>
country.capital?.toLowerCase().contains(capital.toLowerCase()) == true;