getCountry function

String? getCountry(
  1. String? code
)

Get the country name for a two character code given.

Args: code (str): The two character code of country.

Returns: str: The country name if found in dictionary, else None.

Implementation

String? getCountry(String? code) {
  return _countries[code];
}