getSortedCountries method

List<Country> getSortedCountries()

Get countries sorted by name

Implementation

List<Country> getSortedCountries() {
  final countryList = _getEffectiveCountries().values.toList();
  countryList.sort((a, b) => a.name.compareTo(b.name));
  return countryList;
}