getCoordinates method

List<Coordinates> getCoordinates({
  1. int part = 0,
})

Return the coordinates for a specific part of the marker.

Parameters

  • part: Part index to query (default: 0).

Returns

Implementation

List<Coordinates> getCoordinates({final int part = 0}) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'Marker',
    'getCoordinates',
    args: part,
  );

  final List<dynamic> listJson = resultString['result'];
  final List<Coordinates> retList = listJson
      .map((final dynamic categoryJson) => Coordinates.fromJson(categoryJson))
      .toList();
  return retList;
}