countryCodes property

List<String> get countryCodes

Get the country code (ISO 3166-1 alpha-3) list of the product as text.

Country code list can be empty if the product is not a road map item.

This information can be used to render a country flag using MapDetails.getCountryFlag method.

Returns

  • Country code(ISO 3166-1 alpha-3) of the product as text (empty for none).

Throws

  • An exception if it fails.

Implementation

List<String> get countryCodes {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'ContentStoreItem',
    'getCountryCodes',
  );
  return resultString['result'].cast<String>();
}