getLandmarks method

List<Landmark> getLandmarks(
  1. int start,
  2. int end
)

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

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();
}