areaSmallerThan static method

CountryList areaSmallerThan(
  1. double area
)

gets countries that are smaller than certain area by KM

Implementation

static CountryList areaSmallerThan(double area) {
  List<Country> countries = _countryData.countries.where((c) => c.area != null && c.area! < area).toList();
  return CountryList(countries: countries);
}