getLandmarks method
Retrieves landmarks for the half-open index range [start, end) in this session.
Use this method to page through results; indexes are zero-based and the
returned list may be shorter than (end - start) if fewer items remain.
Parameters
start: Starting index (inclusive, zero-based).end: Ending index (exclusive).
Returns
- List<Landmark>: Landmarks within the requested range.
Implementation
List<Landmark> getLandmarks(int start, int end) {
final OperationResult resultString = objectMethod(
pointerId,
'LandmarkBrowseSession',
'getLandmarks',
args: <String, int>{'first': start, 'second': end},
);
return LandmarkList.init(resultString['result']).toList();
}