byArea static method

Country byArea(
  1. double area
)

gets country by exact area TODO : test this better

Implementation

static Country byArea(double area) {
  Country countries = _countryData.countries.where((c) => c.area == area).first;
  return countries;
}