capitalFunc method
Implementation
capitalFunc(String capital) => (Country country) =>
country.capital?.toLowerCase() == capital.toLowerCase();
capitalFunc(String capital) => (Country country) =>
country.capital?.toLowerCase() == capital.toLowerCase();