byRegion static method

List<Country> byRegion(
  1. String region
)

Implementation

static List<Country> byRegion(String region) {
  List<Country> countries = _countryData.countries
      .where((c) => c.region!.contains(region))
      .toList();
  return countries;
}