getStoreCategoryId method
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: WhenindexCategoryis 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'];
}