getStoreCategoryId method

int getStoreCategoryId(
  1. int storeId,
  2. int indexCategory
)

Returns the category id at position indexCategory for the store storeId.

Parameters

  • storeId: The store id to query.
  • indexCategory: Zero-based index of the category to retrieve.

Returns

  • int: The category id on success.
  • GemError.notFound.code: When the store id is not present in the collection.
  • GemError.outOfRange.code: When indexCategory is out of range.

Implementation

int getStoreCategoryId(final int storeId, final int indexCategory) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'LandmarkStoreCollection',
    'getStoreCategoryId',
    args: <String, int>{'storeId': storeId, 'indexCategory': indexCategory},
    dependencyId: _mapPointerId,
  );

  return resultString['result'];
}