getCountryNameByIndex static method

String getCountryNameByIndex(
  1. int index
)

Get the country name for the specified index.

Parameters

  • IN index The country index

Returns

  • Country name as string

Throws

  • An exception if it fails.

Implementation

static String getCountryNameByIndex(final int index) {
  final OperationResult resultString = objectMethod(
    0,
    'MapDetails',
    'getCountryNameByIndex',
    args: index,
  );

  return resultString['result'];
}