wayPoints property

List<int> get wayPoints

Get read-only access to the internal waypoint list.

Read-only access to the list of waypoint indices for this path.

Waypoints are expressed as integer indices that reference positions in coordinates.

Returns

Implementation

List<int> get wayPoints {
  final OperationResult resultString = objectMethod(
    pointerId,
    'Path',
    'getWayPoints',
  );

  final List<int> listJson = (resultString['result'] as List<dynamic>)
      .map((final dynamic item) => item as int)
      .toList();
  return listJson;
}