toLandmarkList method
Create a new landmark list from a path.
Converts this path into a list of Landmark objects.
This is useful when you want to compute path-based routes.
Returns
- A List<Landmark> representing the path as landmarks.
Implementation
List<Landmark> toLandmarkList() {
final OperationResult resultString = objectMethod(
pointerId,
'Path',
'toLandmarkList',
);
return LandmarkList.init(resultString['result']).toList();
}