capitalContainsFunc method

dynamic capitalContainsFunc(
  1. String capital
)

Implementation

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