byName static method

Country byName(
  1. String name
)

gets country by Name Example

Implementation

static Country byName(String name) {
  Country country = _countryData.countries.where((c) => c.name == name).first;
  return country;
}