getWaypoints method
Returns the list of Landmark waypoints for the route at index.
Parameters
index: Index of the route in the current sort order.
Returns
List<Landmark>?: ordered list of waypoints, ornullwhen the index is invalid.
Implementation
List<Landmark>? getWaypoints(final int index) {
final OperationResult resultString = objectMethod(
pointerId,
'RouteBookmarks',
'getWaypoints',
args: index,
);
final GemError err = GemErrorExtension.fromCode(
resultString.data['gemApiError'],
);
if (err != GemError.success) {
return null;
}
return LandmarkList.init(resultString['result']).toList();
}