capitalFunc method

dynamic capitalFunc(
  1. String capital
)

Implementation

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