getCountryLevelItem static method
- String countryIsoCode
Get the country level item for specific country iso code that can be used by guided address search.
Parameters
- IN countryIsoCode The country iso code for which to get the country level item.
Returns
- Valid Landmark if the countryIsoCode is valid.
- Null if the countryIsoCode is not valid
Implementation
static Landmark? getCountryLevelItem(final String countryIsoCode) {
final OperationResult resultString = staticMethod(
'GuidedAddressSearchService',
'getCountryLevelItem',
args: countryIsoCode,
);
final Landmark result = Landmark.init(resultString['result']);
if (result.name.isEmpty) {
return null;
}
return result;
}