getStoreIdAt method

int getStoreIdAt(
  1. int index
)

Returns the store id at the given zero-based index in the collection.

Parameters

  • index: The index to query; it must be less than size.

Returns

  • int: Store id on success (> 0).
  • GemError.outOfRange.code: When index is out of range.

Implementation

int getStoreIdAt(final int index) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'LandmarkStoreCollection',
    'getStoreIdAt',
    args: index,
    dependencyId: _mapPointerId,
  );

  return resultString['result'];
}