getAllCountryInfo method

List<Map<String, String>> getAllCountryInfo()

Gets the country information for all countries.

Returns a List<Map<String, String>>.

Implementation

List<Map<String, String>> getAllCountryInfo() {
  if (_records.isEmpty) {
    throw Exception('No record available.');
  }
  return _records.values.toList();
}